aws-ia / terraform-aws-vpc

AWS VPC Module
https://registry.terraform.io/modules/aws-ia/vpc/aws/latest
Apache License 2.0
82 stars 89 forks source link

[Enhancement] Add ability to provide a list of Availability Zones for subnet placement #123

Open AdrianBegg opened 1 year ago

AdrianBegg commented 1 year ago

The proposed enhancement is to add a new optional input variable azs to allow definition of specific Availability Zones where the module should deploy AZ bound components. Currently, there is not a mechanism to specify specific a list of Availability Zones where objects (Subnets, Routes, etc.) should be deployed and a subset based on the input variable az_count is used.

The use case for this would be to deploy the VPC subnets in AZs with service endpoint or workload affinity to optimize for cost and performance (e.g. PrivateLink endpoints only available in a subset of AZs or customers deploying workloads outside this VPC in a specific subset of AZs).

kennschr commented 2 months ago

Any progress on merging pull request? I am having issue where seemingly AWS services do not support endpoints in every AZ. I have encountered this in a recent solution I'm building and making it difficult to use this module since I can't filter out the AZs that don't have support for service I'm trying to create an endpoint for.