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

Add an option to configure preferred AWS availability zones for cluster creation #36

Open
binlab opened this issue Jun 29, 2021 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@binlab
Copy link
Owner

binlab commented Jun 29, 2021

For now, the count of subnets calculated dynamically using as an input data resource data.aws_availability_zones. For some regions (e.g. us-east-1 with has 6 availability zones for now) and some small clusters (e.g. 3 nodes), some subnets might be redundant. In addition, it is not possible to specify preferred availability zones for cluster creation. It would be nice to have the option to provide a list of desired availability zones.

@binlab binlab added the enhancement New feature or request label Jun 30, 2021
@binlab binlab self-assigned this Jun 30, 2021
@Narragansett
Copy link

I changed main.tf to this as the list of preferred availability zones. Is this what you asked for?
data "aws_availability_zones" "current" {
filter {
name = "zone-name"
values = ["us-east-1a","us-east-1b","us-east-1c","us-east-1d","us-east-1f"]
}
}

@binlab
Copy link
Owner Author

binlab commented Aug 23, 2021

@Narragansett thank you for the suggestion! Yes, this solution might fit. But in this case, may need to be more strictly limited than filter

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants