-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(QCDN-23781): certificate template resource and data source
- Loading branch information
1 parent
4ef30bb
commit 29bd6d3
Showing
693 changed files
with
52,603 additions
and
14,657 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
examples/playground/qwilt-config-certificate-template/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Qwilt Basic Resource Example | ||
|
||
This is a simple example demonstrating how to configure a single site, site configuration, certificate, and activation resource. | ||
|
||
In this example, the host_index JSON configuration is embedded in *main.tf*. | ||
|
||
If you prefer to maintain the SVTA configuration in a separate file, remove the embedded host_index, and instead use the reference to *examplesitebasic.json*: | ||
|
||
``` | ||
host_index = file("./examplesitebasic.json") | ||
``` | ||
|
||
|
||
|
||
To use this example: | ||
|
||
1. Make sure your QCDN_API_KEY env variable is set. (This is the recommended authentication method.) | ||
|
||
For more information on authentication, see the [User Guide](https://docs.qwilt.com/docs/terraform-user-guide#authentication), which also covers alternative methods. | ||
|
||
2. Replace the placeholder values with your own specific configuration details. | ||
|
||
Replace the example certificate and key values with your own. | ||
|
||
3. Apply the configuration: | ||
|
||
``` | ||
$ terraform apply | ||
``` |
20 changes: 20 additions & 0 deletions
20
examples/playground/qwilt-config-certificate-template/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
terraform { | ||
required_providers { | ||
qwilt = { | ||
source = "qwilt.com/qwiltinc/qwilt" | ||
} | ||
} | ||
} | ||
|
||
provider "qwilt" { | ||
} | ||
|
||
resource "qwilt_cdn_certificate_template" "exmaple" { | ||
common_name = "example.com" | ||
auto_managed_certificate_template = true | ||
organization_name = "Qwilt" | ||
locality = "Hod Hasharon" | ||
country = "IL" | ||
state = "Israel" | ||
sans = ["www.example.com"] | ||
} |
5 changes: 5 additions & 0 deletions
5
examples/playground/qwilt-config-certificate-template/variables.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#variable "token" { | ||
# description = "API Token" | ||
# type = string | ||
# sensitive = true | ||
#} |
11 changes: 11 additions & 0 deletions
11
examples/resources/qwilt_cdn_certificate_template/import.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
|
||
#Create an empty resource to import into. | ||
|
||
#After the import is complete, manually set the required attributes | ||
#in the resource based on the imported state. | ||
|
||
|
||
resource "qwilt_cdn_certificate_template" "example" { | ||
} | ||
|
||
terraform import qwilt_cdn_certificate_template.example <certificate_template_id> |
6 changes: 6 additions & 0 deletions
6
examples/resources/qwilt_cdn_certificate_template/resource.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
|
||
resource "qwilt_cdn_certificate_template" "example" { | ||
common_name = "example.com" | ||
auto_managed_certificate_template = true | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.