-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
VPC: Invalid availability zone #36
Comments
We are using Fn::GetAZs to determine a valid availability zone. So this should not happen. :) Which template are you using? The newest version? |
I clicked the Launch Stack button on this page for 3 AZs. The AZ us-east-1b is a valid AZ in my account, but I cannot create new subnets in that AZ. It seems that |
Fine, didn't expect that behavior. Any ideas for a solution, that is still simple to use?
|
I don't think there's any reasonable way to detect and skip AZs that are invalid for VPC subnets in CloudFormation. Probably the least painful solution is to add a parameter of type |
For the EC2-VPC platform, the Fn::GetAZs function returns only Availability Zones that have a default subnet unless none of the Availability Zones has a default subnet; in that case, all Availability Zones are returned. |
@fiducioso-dan can you check if you have a default vpc in the region where you deploy the stack? You will find the VPCs here: https://console.aws.amazon.com/vpc/home#vpcs: |
@michaelwittig Yes I do have a default VPC: Should I reference that instead of 10.200.0.0/16 that I have entered as a value for when I ran the template? |
Just another datapoint for troubleshooting: I was able to successfully launch the 3 AZ template into the |
@fiducioso-dan do you have developer, business or enterprise support in the AWS account where the template fails? I can not reproduce the issue in any of my accounts where I have a support plan. Would be interested in what the AWS Support has to say. |
@fiducioso-dan the issue in #37 was that there was a default vpc but not a subnet in each availability zone. Can you please double check if you have a subnet in each AZ for the default vpc. |
With classic AWS account without default VPCs I ran into this issue as well. Contacted AWS support and they confirmed that there's no way to automatically determine available AZs for subnet creation in CloudFormation. Their suggestion was similar to SO answer mentioned above which requires manual steps. Thank you for the valuable templates. This was not the first time I found helpful examples from your repository. |
Apparently us-east-1b isn't a valid AZ for creating subnets in my account.
The text was updated successfully, but these errors were encountered: