Cannot create Amplify project with containers in regions with fewer than 3 AZs #13904
Open
2 tasks done
Labels
bug
Something isn't working
containers
Issues related to the non-serverless container based functionality
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
No response
Amplify CLI Version
12.12.6
What operating system are you using?
macOS
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
N/A
Describe the bug
Attempting to create an Amplify project, with containers, in regions with fewer than 3 AZs results in an error:
The requested number of subnets exceeds the number of AZs for the region.
This appears to be because of a hardcoded value for thesubnets
argument togetEnvironmentNetworkInfo
in env-level-constructs.ts.Expected behavior
The number of requested subnets does not exceed the number of availability zones for the selected region.
Reproduction steps
us-west-1
)amplify configure projects
>Advanced: Container-based deployments
amplify add api
>REST
>API Gateway + AWS Fargate (Container-based)
> (accept defaults for remaining options)amplify push -y
Project Identifier
0ef4cab727ef3e2dd0a288133a105af9
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: