cytopia / terraform-aws-route53-zone

A Terraform module that handles creation of multiple Route53 zones including attachment to new or existing delegation set
https://registry.terraform.io/modules/cytopia/route53-zone/aws/
MIT License
14 stars 18 forks source link

Feature request: Allow the dynamic collection of VPC IDs #11

Open danvaida opened 4 years ago

danvaida commented 4 years ago

Instead of needing to hardcode the VPC IDs when performing the zone association, the module should fetch the IDs dynamically. Filtering can take place based on tags.

cytopia commented 4 years ago

Hi @danvaida and thanks for the issue.

That was also the idea I had initially. The issue I encountered was that you cannot add VPCs from different regions this way - only the current region of Terraform/Terragrunt.

I was also thinking that it might make more sense for each VPC project to attach themselves to route53 (for private zones) instead of the other way round (this would also eliminate the issue with cross-region).

However, if you can think of an idea to also make the cross-region VPC association work within this module, I'd love to have a PR from you.