terraform-provider-aws: [Bug]: Error: Provider produced inconsistent final plan

Related:

Terraform Core Version

1.3.1

AWS Provider Version

4.51.0

Affected Resource(s)

I’ve got the following set of errors recently on two separate deployments:

module.db.aws_db_instance.app-db[0]: Creation complete after 10m47s [id=dev-local-alex20230120152722403400000001]
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" changed the planned action from Update to DeleteThenCreate.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .cpu_core_count: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .id: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .outpost_arn: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .password_data: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .private_dns: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .primary_network_interface_id: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .private_ip: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .disable_api_termination: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .ipv6_address_count: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .user_data: was null, but now cty.UnknownVal(cty.String).
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .host_id: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .host_resource_group_arn: was null, but now cty.UnknownVal(cty.String).
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .public_ip: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .secondary_private_ips: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .security_groups: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .instance_initiated_shutdown_behavior: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .monitoring: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .placement_group: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .public_dns: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .tenancy: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .cpu_threads_per_core: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .arn: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .availability_zone: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .instance_state: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .disable_api_stop: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .ipv6_addresses: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .key_name: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .ebs_optimized: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .hibernation: was cty.False, but now null.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅
β•·
β”‚ Error: Provider produced inconsistent final plan
β”‚
β”‚ When expanding the plan for module.app-admin.aws_instance.instance to include new values learned so far during apply, provider
β”‚ "registry.terraform.io/hashicorp/aws" produced an invalid new value for .placement_partition_number: was known, but now unknown.
β”‚
β”‚ This is a bug in the provider, which should be reported in the provider's own issue tracker.
β•΅

What does it mean?

Expected Behavior

Successful apply

Actual Behavior

Error. Retrying on the same state succeeds.

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

I can’t share right now

Steps to Reproduce

Unknown

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

No response

Would you like to implement a fix?

None

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Reactions: 9
  • Comments: 27 (15 by maintainers)

Most upvoted comments

@justinretzolk Sorry, its hard to sanitize and post something thats still useful. But the clear behavior is the connection_type="INTERNET" thing. We have api gateways with hundreds and hundreds of aws_api_gateway_integration resources. If I run the plan with version 4.50, I get a clean run without anything to apply. If I run it with the only change being 4.51, then I get hundreds of β€œupdate aws_api_gateway_integration” for + connection_type="INTERNET". And if we save the plan and try and apply it separately, we get the β€œProvider produced inconsistent final plan” issue.

I can say this is effecting us as well, however it is arising in the api_gateway/deployment area. We’ve had to go through and pin everything on version 4.50 (which does solve the issue). I noticed two behaviors long with the broader issue. When the plan file was saved, then used to apply it, the inconsistency issue arose. When I just did a direct β€œterraform apply”, the problem didn’t occur. We also were getting a situation where every single aws_api_gateway_integration wanted to update to add connection_type="INTERNET" whereas we were just depending on it being set already by default. Some sort of internal representation seemed to have changed.
β”‚ Error: Provider produced inconsistent final plan β”‚ β”‚ When expanding the plan for aws_api_gateway_deployment.this[0] to include β”‚ new values learned so far during apply, provider β”‚ "[registry.terraform.io/hashicorp/aws](http://registry.terraform.io/hashicorp/aws)" produced an invalid new value for β”‚ .triggers["redeployment"]: was β”‚ cty.StringVal("50ca9c4844afb2bdb8056e0947e29e85ff83d27c"), but now β”‚ cty.StringVal("148f86a5835191e3503587399ad2351a0ebce4dc"). β”‚ β”‚ This is a bug in the provider, which should be reported in the provider's β”‚ own issue tracker.