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

Detect mismatching AWS AZ and subnet at plan time #13999

Open
jleclanche opened this issue Jun 30, 2020 · 2 comments
Open

Detect mismatching AWS AZ and subnet at plan time #13999

jleclanche opened this issue Jun 30, 2020 · 2 comments
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.

Comments

@jleclanche
Copy link

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:

* aws_instance.test_01: Error launching source instance: InvalidParameterValue: Value (us-east-1c) for parameter availabilityZone is invalid. Subnet 'subnet-aff9fe92' is in the availability zone us-east-1b
status code: 400

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.

@jleclanche jleclanche added the enhancement Requests to existing resources that expand the functionality or scope. label Jun 30, 2020
@ghost ghost added the service/ec2 Issues and PRs that pertain to the ec2 service. label Jun 30, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Jun 30, 2020
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Jul 3, 2020
@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Jun 23, 2022
@jleclanche
Copy link
Author

...

@github-actions github-actions bot removed the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Jun 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
2 participants