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

Error: Provider produced inconsistent final plan #9622

Closed
Magicloud opened this issue Aug 4, 2019 · 3 comments
Closed

Error: Provider produced inconsistent final plan #9622

Magicloud opened this issue Aug 4, 2019 · 3 comments
Labels
service/autoscaling Issues and PRs that pertain to the autoscaling service.

Comments

@Magicloud
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Terraform Version

v0.12.6

Affected Resource(s)

  • aws_autoscaling_group

Terraform Configuration Files

https://github.com/Magicloud/ifp-example/blob/master/alb-test/tester.tf

All modules it uses is in the repo.

Debug Output

https://github.com/Magicloud/ifp-example/blob/master/alb-test/tf-debug.log

Panic Output

N/A

Expected Behavior

A VPC, an ASG, an ELB setup.

Actual Behavior

Error: Provider produced inconsistent final plan

When expanding the plan for module.asg.aws_autoscaling_group.cluster to
include new values learned so far during apply, provider "aws" produced an
invalid new value for .availability_zones: was known, but now unknown.

This is a bug in the provider, which should be reported in the provider's own
issue tracker.

Steps to Reproduce

  1. terraform apply
    Get error.
  2. terraform apply again
    Works.

Important Factoids

Nothing special I guess.

References

I have read some other issues here about "inconsistent final plan". None are similar.

@ghost ghost added the service/autoscaling Issues and PRs that pertain to the autoscaling service. label Aug 4, 2019
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 4, 2019
@vroy
Copy link

vroy commented Aug 21, 2019

We had the same problem and I just figured out the issue. You have both availability_zones and vpc_zone_identifier set. Removing the availability_zones argument solved this for us.

From the docs:

  • availability_zones - (Required only for EC2-Classic) A list of one or more availability zones for the group. This parameter should not be specified when using vpc_zone_identifier.

  • vpc_zone_identifier (Optional) A list of subnet IDs to launch resources in.

@Magicloud
Copy link
Author

@vroy Thanks. Works for me.

@ghost
Copy link

ghost commented Nov 1, 2019

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 Nov 1, 2019
@breathingdust breathingdust removed the needs-triage Waiting for first response or review from a maintainer. label Sep 17, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
service/autoscaling Issues and PRs that pertain to the autoscaling service.
Projects
None yet
Development

No branches or pull requests

3 participants