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

[aws-load-balancer-controller]: terraform is broken trying to apply configuration second time #135

Closed
3 tasks done
mglotov opened this issue Oct 18, 2021 · 1 comment
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@mglotov
Copy link
Contributor

mglotov commented Oct 18, 2021

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • I am running the latest version
  • I checked the documentation and found no answer
  • I checked to make sure that this issue has not already been filed

Expected Behavior

terraform apply command in layer2-k8s folder mustn't return an error if nothing changed.

Current Behavior

If you set aws_loadbalancer_controller_enable = true and run terraform apply twice in layer2-k8s folder, you get an error due to terraform helm provider (hashicorp/terraform-provider-helm#711)

Failure Information (for bugs)

Error: Provider produced inconsistent final plan

When expanding the plan for
module.eks_alb_ingress[0].helm_release.aws_loadbalancer_controller to include new values
learned so far during apply, provider "registry.terraform.io/hashicorp/helm"
produced an invalid new value for .manifest: was
cty.StringVal("...long string-escaped JSON block of the old manifest..."),
but now
cty.StringVal("...long string-escaped JSON block of the new manifest...").

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

If you set for helm provider

experiments {
   manifest = false
}

you won't get the error above.

Steps to Reproduce

Please provide detailed steps for reproducing the issue.

  1. switch to layer2-k8s folder
  2. set aws_loadbalancer_controller_enable = true
  3. run terraform apply
  4. run terraform apply again

Context

  • Affected module version:
  • OS:
  • Terraform version: 0.15.1

Any other relevant info including logs

There is a workaround kubernetes-sigs/aws-load-balancer-controller#2264, but it isn't available in the helm repo yet.

@mglotov mglotov added the bug Something isn't working label Oct 18, 2021
@mglotov
Copy link
Contributor Author

mglotov commented Apr 18, 2022

Tried to use the latest version (1.4.1). The problem still exists

@mglotov mglotov closed this as completed Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant