-
Notifications
You must be signed in to change notification settings - Fork 631
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
examples/resources/cloudflare_certificate_authorities_hostname_associations/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,5 @@ | ||
# import hostname associations for the active Cloudflare Managed CA | ||
$ terraform import cloudflare_certificate_authorities_hostname_associations.example <zone_id> | ||
|
||
# import hostname associations for the specified mTLS certificate | ||
$ terraform import cloudflare_certificate_authorities_hostname_associations.example <zone_id>/<mtls_certificate_id> |
12 changes: 12 additions & 0 deletions
12
examples/resources/cloudflare_certificate_authorities_hostname_associations/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,12 @@ | ||
# Hostname associations for the active Cloudflare Managed CA. | ||
resource "cloudflare_certificate_authorities_hostname_associations" "example_1" { | ||
zone_id = "0da42c8d2132a9ddaf714f9e7c920711" | ||
hostnames = ["example.com"] | ||
} | ||
|
||
# Hostname associations for a specific mTLS certificate. | ||
resource "cloudflare_certificate_authorities_hostname_associations" "example_2" { | ||
zone_id = "0da42c8d2132a9ddaf714f9e7c920711" | ||
mtls_certificate_id = "1fc1e34f39e74dd591366239dc47c5a4" | ||
hostnames = ["example.com"] | ||
} |