Skip to content

Commit

Permalink
NAP-275 add recordsets
Browse files Browse the repository at this point in the history
  • Loading branch information
faizando committed Aug 13, 2021
1 parent 6753845 commit 7396467
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion experimental/terraform/resource_event_handler.tf
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,16 @@ module "event_hander_dns" {
name = replace(replace(lower(trimspace(var.mapped_domain)), ".", "-"), "/[^a-z0-9\\-]/", "")
domain = "${var.mapped_domain}."

recordsets = google_cloud_run_domain_mapping.event_handler[0].status[0]["resource_records"]
recordsets = [
{
name = google_cloud_run_domain_mapping.event_handler[0].status[0]["resource_records"][0]["name"]
type = google_cloud_run_domain_mapping.event_handler[0].status[0]["resource_records"][0]["type"]
ttl = 3600
records = [
google_cloud_run_domain_mapping.event_handler[0].status[0]["resource_records"][0]["rrdata"]
]
}
]

depends_on = [google_project_service.dns_api]
}
Expand Down

0 comments on commit 7396467

Please sign in to comment.