Skip to content

Commit

Permalink
add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ebisso committed Dec 24, 2024
1 parent 9dd79d8 commit 0c34145
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
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>
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"]
}

0 comments on commit 0c34145

Please sign in to comment.