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

Provider produced inconsistent final plan #1750

Closed
im2nguyen opened this issue Jan 7, 2022 · 6 comments
Closed

Provider produced inconsistent final plan #1750

im2nguyen opened this issue Jan 7, 2022 · 6 comments

Comments

@im2nguyen
Copy link

Description

Hello! I'm experiencing an issue when upgrading from 17.x to 18.0.4.

When I apply the configuration (eks-cluster.tf), Terraform returns with the following error.

╷
│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for module.eks.module.self_managed_node_group["worker-group-2"].aws_autoscaling_group.this[0] to include new values learned so far
│ during apply, provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .tags: length changed from 5 to 6.
│ 
│ 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.eks.module.self_managed_node_group["worker-group-1"].aws_autoscaling_group.this[0] to include new values learned so far
│ during apply, provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .tags: length changed from 5 to 6.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

Is there something I'm doing wrong? Can you point me in the right way? Thank you!

Tangentially, it was difficult to figure out what object the self_managed_node_groups attribute expects without navigating through all the examples. Is it possible to add an example to the Inputs section of the readme?

⚠️ Note

Before you submit an issue, please perform the following first:

  1. Remove the local .terraform directory (! ONLY if state is stored remotely, which hopefully you are following that best practice!): rm -rf .terraform/
  2. Re-initialize the project root to pull down modules: terraform init
  3. Re-attempt your terraform plan or apply and check if the issue still persists

Versions

  • Terraform: v1.1.2
  • Provider(s):

    Terraform v1.1.2
    on darwin_amd64
    + provider registry.terraform.io/hashicorp/aws v3.71.0
    + provider registry.terraform.io/hashicorp/cloudinit v2.2.0
    + provider registry.terraform.io/hashicorp/kubernetes v2.7.1
    + provider registry.terraform.io/hashicorp/local v2.1.0
    + provider registry.terraform.io/hashicorp/null v3.1.0
    + provider registry.terraform.io/hashicorp/random v3.1.0
    + provider registry.terraform.io/hashicorp/tls v3.1.0
    
  • Module: 18.0.2

Reproduction

Steps to reproduce the behavior:

No workspaces. Cleared local cache.

Code Snippet to Reproduce

Expected behavior

Terraform applies successfully.

Actual behavior

Terraform returns error.

╷
│ Error: Provider produced inconsistent final plan
│ 
│ When expanding the plan for module.eks.module.self_managed_node_group["worker-group-2"].aws_autoscaling_group.this[0] to include new values learned so far
│ during apply, provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .tags: length changed from 5 to 6.
│ 
│ 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.eks.module.self_managed_node_group["worker-group-1"].aws_autoscaling_group.this[0] to include new values learned so far
│ during apply, provider "registry.terraform.io/hashicorp/aws" produced an invalid new value for .tags: length changed from 5 to 6.
│ 
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵

Terminal Output Screenshot(s)

Additional context

@bryantbiggs
Copy link
Member

  1. Do you have a repro of your configuration
  2. The inputs for self managed node groups (as well as EKS managed node groups and fargate profiles) are fully documented - you can check either:

@im2nguyen
Copy link
Author

Hi @bryantbiggs, yep. I listed the configuration in the original issue.

@bryantbiggs
Copy link
Member

my apologies @im2nguyen - I overlooked that on the first pass

It looks like you are suffering from hashicorp/terraform#4149 - to get around this, your referenced security groups will need to be created before they can be referenced

@im2nguyen
Copy link
Author

Hrm... I wonder why the implicit dependencies doesn't work here 🤔

@bryantbiggs
Copy link
Member

closing this for now @im2nguyen since its a Terraform core issue

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants