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 in 0.12.3 #22048

Closed
plar opened this issue Jul 11, 2019 · 3 comments · Fixed by #22057
Closed

Error: Provider produced inconsistent final plan in 0.12.3 #22048

plar opened this issue Jul 11, 2019 · 3 comments · Fixed by #22057

Comments

@plar
Copy link

plar commented Jul 11, 2019

Terraform Version

$ terraform version
Terraform v0.12.3
+ provider.aws v2.19.0
+ provider.template v2.1.2

Debug Output

Error: Provider produced inconsistent final plan

When expanding the plan for aws_lb.nlb to include new values learned so far
during apply, provider "aws" produced an invalid new value for
.subnet_mapping: block set length changed from 1 to 2.

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

Expected Behavior

aws_lb.nlb resource should be created with list of subnet_mapping during first time terraform apply itself.

Actual Behavior

aws_lb.nlb resource is getting created with list of subnet_mapping during second time terraform apply only and getting error output (shared in debug output) during first time apply.

Steps to Reproduce

You can find a simple project to reproduce this bug here https://github.com/plar/terraform_dynamic_bug

References

@illwiz
Copy link

illwiz commented Jul 28, 2019

I experience this bug using the latest version:

Terraform v0.12.5
+ provider.aws v2.19.0
+ provider.local v1.3.0
+ provider.null v2.1.2
+ provider.template v2.1.2
Error: Provider produced inconsistent final plan

When expanding the plan for aws_autoscaling_group.api_asg 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.

Doesn't happen on the second run, only the first time i setup my aws infrastructure

@teamterraform
Copy link
Contributor

Hi @illwiz , I'm sorry you're experiencing an issue.

The error you supplied (and the resource in question) are both different from the ones in this issue. Please open a new issue in the provider's issue tracker as suggested by the error.

@ghost
Copy link

ghost commented Aug 12, 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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Aug 12, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants