forked from GoogleCloudPlatform/magic-modules
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add type field to DNS authorization reosurce (GoogleCloudPlatform#10030)
* Add type field to DNS authorization reosurce * Add an example for regional DNS authorization * Add an example for regional certs using regional DNS auth * Fix lint errors * Fix typo in the enum values * Add type field in regional dns auth example --------- Co-authored-by: Hamza Hassan <[email protected]>
- Loading branch information
1 parent
c554beb
commit 721eab4
Showing
4 changed files
with
56 additions
and
0 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
7 changes: 7 additions & 0 deletions
7
mmv1/templates/terraform/examples/certificate_manager_dns_authorization_regional.tf.erb
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,7 @@ | ||
resource "google_certificate_manager_dns_authorization" "<%= ctx[:primary_resource_id] %>" { | ||
name = "<%= ctx[:vars]['dns_auth_name'] %>" | ||
location = "us-central1" | ||
description = "reginal dns" | ||
type = "PER_PROJECT_RECORD" | ||
domain = "<%= ctx[:vars]['subdomain'] %>.hashicorptest.com" | ||
} |
19 changes: 19 additions & 0 deletions
19
...erraform/examples/certificate_manager_google_managed_regional_certificate_dns_auth.tf.erb
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,19 @@ | ||
resource "google_certificate_manager_certificate" "<%= ctx[:primary_resource_id] %>" { | ||
name = "<%= ctx[:vars]['cert_name'] %>" | ||
description = "regional managed certs" | ||
location = "us-central1" | ||
managed { | ||
domains = [ | ||
google_certificate_manager_dns_authorization.instance.domain, | ||
] | ||
dns_authorizations = [ | ||
google_certificate_manager_dns_authorization.instance.id, | ||
] | ||
} | ||
} | ||
resource "google_certificate_manager_dns_authorization" "instance" { | ||
name = "<%= ctx[:vars]['dns_auth_name'] %>" | ||
location = "us-central1" | ||
description = "The default dnss" | ||
domain = "<%= ctx[:vars]['dns_auth_subdomain'] %>.hashicorptest.com" | ||
} |