-
Notifications
You must be signed in to change notification settings - Fork 626
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
resource/cloudflare_certificate_pack: swap to autogenerated documenta…
…tion
- Loading branch information
1 parent
5174da3
commit bd05a54
Showing
7 changed files
with
138 additions
and
137 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
$ terraform import cloudflare_certificate_pack.example 1d5fdc9e88c8a8c4518b068cd94331fe/8fda82e2-6af9-4eb2-992a-5ab65b792ef1 |
22 changes: 22 additions & 0 deletions
22
examples/resources/cloudflare_certificate_pack/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,22 @@ | ||
# Advanced certificate manager for DigiCert | ||
resource "cloudflare_certificate_pack" "advanced_example_for_digicert" { | ||
zone_id = "1d5fdc9e88c8a8c4518b068cd94331fe" | ||
type = "advanced" | ||
hosts = ["example.com", "sub.example.com"] | ||
validation_method = "txt" | ||
validity_days = 30 | ||
certificate_authority = "digicert" | ||
cloudflare_branding = false | ||
} | ||
|
||
# Advanced certificate manager for Let's Encrypt | ||
resource "cloudflare_certificate_pack" "advanced_example_for_lets_encrypt" { | ||
zone_id = "1d5fdc9e88c8a8c4518b068cd94331fe" | ||
type = "advanced" | ||
hosts = ["example.com", "*.example.com"] | ||
validation_method = "http" | ||
validity_days = 90 | ||
certificate_authority = "lets_encrypt" | ||
cloudflare_branding = false | ||
wait_for_active_status = 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
This file was deleted.
Oops, something went wrong.
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,34 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.RenderedProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
|
||
{{ .Description | trimspace }} | ||
|
||
~> Certificate packs are not able to be updated in place and if | ||
you require a zero downtime rotation, you need to use Terraform's meta-arguments | ||
for [`lifecycle`](https://www.terraform.io/docs/configuration/resources.html#lifecycle-lifecycle-customizations) blocks. | ||
`create_before_destroy` should be suffice for most scenarios (exceptions are | ||
things like missing entitlements, high ranking domain). To completely | ||
de-risk rotations, use you can create multiple resources using a 2-phase change | ||
where you have both resources live at once and you remove the old one once | ||
you've confirmed the certificate is available. | ||
|
||
## Example Usage | ||
|
||
{{ tffile (printf "%s%s%s" "examples/resources/" .Name "/resource.tf") }} | ||
|
||
{{ .SchemaMarkdown | trimspace }} | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
{{ codefile "shell" (printf "%s%s%s" "examples/resources/" .Name "/import.sh") }} | ||
|
||
While supported, importing isn't recommended and it is advised to replace the | ||
certificate entirely instead. |