Detect mismatching AWS AZ and subnet at plan time #13999
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/ec2
Issues and PRs that pertain to the ec2 service.
Reopening #645 which was closed for no good reason other than being inactive.
How to reproduce:
Create an aws_subnet with the availability zone us-east-1b
Create an aws_instance, specify the subnet and specify the availability zone as something other than us-east-1b (eg. us-east-1c)
The instance creation will error:
This can be caught at plan time; ideally by checking that the AZ and subnet AZ match, or by making AZ and subnet mutually exclusive.
The text was updated successfully, but these errors were encountered: