Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Req: Support AZ ID and name on subnet creation #234

Closed
Ry-K opened this issue Mar 20, 2019 · 5 comments · Fixed by #370
Closed

Feature Req: Support AZ ID and name on subnet creation #234

Ry-K opened this issue Mar 20, 2019 · 5 comments · Fixed by #370

Comments

@Ry-K
Copy link

Ry-K commented Mar 20, 2019

We are currently using this module for VPC creation. In order to support alignment across a given set of accounts for an upcoming project, we would like to have the ability to set the Availability Zone ID rather than the name when creating a subnet.

https://www.terraform.io/docs/providers/aws/r/subnet.html#argument-reference

Currently the module only supports name (availability_zone argument) when creating a subnet.

Regards,
Ryan

@syquus
Copy link

syquus commented Aug 14, 2019

I just landed here looking for how to configure AZ ID on this module. Sad to see it isn't available. It's a must for cross-account compatibility...

@DrFaust92
Copy link
Contributor

I'm going to take a crack at this, ill update.
from a glance it seems this will be a breaking change if there is a move from az to az id. it should work fine for new VPCs.

@bryantbiggs
Copy link
Member

Duplicate of #350

@antonbabenko
Copy link
Member

I have just released v2.25.0 (after #370 has been merged) and you can now specify AZ IDs or AZ names in azs argument, like this (pick one):

module "vpc" {
  source = "terraform-aws-modules/vpc/aws"

  # Option 1 - Using AZ names
  azs = ["eu-west-1a", "eu-west-1b"]

  # Option 2 - Using AZ ids
  azs = ["euw1-az1", "euw1-az2"]

  # Option 3 - Using mixed values (names and ids)
  azs = ["eu-west-1a", "euw1-az2"]
}

Closing this issue.

@github-actions
Copy link

github-actions bot commented Nov 3, 2022

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 3, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants