File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -32,3 +32,11 @@ resource "aws_route53_resolver_rule_association" "vpc_associations" {
3232 resolver_rule_id = each. value
3333 vpc_id = module. vpc . vpc_attributes . id
3434}
35+
36+ # # Associate the route53 hosted zone with the VPC
37+ resource "aws_route53_zone_association" "association" {
38+ for_each = toset (var. associate_hosted_ids )
39+
40+ vpc_id = module. vpc . vpc_attributes . id
41+ zone_id = each. value
42+ }
Original file line number Diff line number Diff line change 1+ variable "associate_hosted_ids" {
2+ description = " The list of hosted zone ids to associate with the VPC"
3+ type = list (string )
4+ default = []
5+ }
6+
17variable "availability_zones" {
28 description = " The number of availability zone the network should be deployed into"
39 type = number
You can’t perform that action at this time.
0 commit comments