1 Answer
- Newest
- Most votes
- Most comments
1
Hello.
Can you check the list of availability zones with the following command?
If you cannot confirm anything or only one, please try registering the default subnet AZ.
https://github.com/widdix/aws-cf-templates/issues/37#issuecomment-261269729
aws ec2 describe-subnets --filters "Name=default-for-az, Values=true" --query 'Subnets[].AvailabilityZone' --region us-east-1
You can check the availability zones available for "us-east-1" in your AWS account using the following command.
aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --region us-east-1
[
"us-east-1a",
"us-east-1b",
"us-east-1c",
"us-east-1d",
"us-east-1e",
"us-east-1f"
]
After checking the availability zones that can be used, try adding the availability zone using the following command.
aws ec2 create-default-subnet --availability-zone us-east-1a --region us-east-1

i did that $ aws ec2 describe-availability-zones --query 'AvailabilityZones[].ZoneName' --region us-east-1 [ "us-east-1a", "us-east-1b", "us-east-1c", "us-east-1d", "us-east-1e", "us-east-1f" ] aws ec2 create-default-subnet --availability-zone us-east-1a --region us-east-1 An error occurred (DefaultSubnetAlreadyExistsInAvailabilityZone) when calling the CreateDefaultSubnet operation: 'subnet-04845898301128f82' is already the default subnet in us-east-1a.
Please share the results of running the command below.
Also, from the error message, there is a default subnet in "us-east-1a", so please change it to something like "us-east-1b" and run the command.