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

Mismatch reason: attribute mismatch: availability_zones.1726430690 #2797

Closed
stealthiscode opened this issue Dec 28, 2017 · 2 comments · Fixed by #3897
Closed

Mismatch reason: attribute mismatch: availability_zones.1726430690 #2797

stealthiscode opened this issue Dec 28, 2017 · 2 comments · Fixed by #3897
Labels
bug Addresses a defect in current functionality. service/autoscaling Issues and PRs that pertain to the autoscaling service.

Comments

@stealthiscode
Copy link

stealthiscode commented Dec 28, 2017

Terraform Version

0.11.0

Affected Resource(s)

Please list the resources as a list, for example:

  • aws_autoscaling_group

Terraform Configuration Files

https://github.com/stealthiscode/lfs/blob/master/tf-bug-report.tar.bz2

Debug Output

https://gist.github.com/stealthiscode/abcced878c96117aeb282c0565a6e665

Expected Behavior

Both services create ASGs successfully and apply cleanly in a single pass.

Actual Behavior

Plan looks good, apply produces an error (see gist). A second apply passes. If I start over (destroy all), remove one module and apply it works fine. Adding the second module back in an applying again works fine. It's only the initial apply with multiple modules that produces the error. 100% reproducible.

Steps to Reproduce

  1. terraform apply
@jen20 jen20 added the bug Addresses a defect in current functionality. label Dec 29, 2017
@radeksimko radeksimko added the service/autoscaling Issues and PRs that pertain to the autoscaling service. label Jan 28, 2018
@bflad
Copy link
Contributor

bflad commented Mar 23, 2018

This issue was automatically closed by the documentation update in #3897. The configuration fix for diffs didn't match during apply and Mismatch reason: attribute mismatch: availability_zones.XXXXXX is to remove availability_zones configuration if vpc_zone_identifier is also specified. If you must specify availability_zones due to being used in a module that works with both EC2-Classic and VPC, availability_zones can be set to [] (an empty list).

@ghost
Copy link

ghost commented Apr 7, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked and limited conversation to collaborators Apr 7, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/autoscaling Issues and PRs that pertain to the autoscaling service.
Projects
None yet
4 participants