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

Validate Availability Zone Ordering for vpc_cni_custom_subnets #208

Open
willswire opened this issue Dec 6, 2024 · 1 comment
Open

Validate Availability Zone Ordering for vpc_cni_custom_subnets #208

willswire opened this issue Dec 6, 2024 · 1 comment
Assignees

Comments

@willswire
Copy link
Member

subnets = { for az, subnet in zipmap(var.azs, var.vpc_cni_custom_subnet) : az => {

It is possible to supply unordered AZs, that will get zipmaped to subnets in different AZs.

@willswire willswire self-assigned this Dec 6, 2024
@willswire
Copy link
Member Author

Something like:

azs = [
    for id in data.aws_subnets.vpc_intra_subnets.ids :
    data.aws_subnet.intra_subnet_info[id].availability_zone
  ]

works (thanks @mcamick) for now

@willswire willswire linked a pull request Dec 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant