-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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_lb_target_group for an instance type target group is trying to add (or make a change) of attribute: lambda_multi_value_headers_enabled #7960
Comments
As described in: hashicorp/terraform-provider-aws#7960 Terraform is saying: Terraform will perform the following actions: ~ module.upload-service.module.upload-service-database.aws_lb_target_group.pgbouncer lambda_multi_value_headers_enabled: "" => "false" Installing the workaround described in the git issue.
As described in: hashicorp/terraform-provider-aws#7960 Terraform is saying: Terraform will perform the following actions: ~ module.upload-service.module.upload-service-database.aws_lb_target_group.pgbouncer lambda_multi_value_headers_enabled: "" => "false" Installing the workaround described in the git issue.
This bug no longer persists in AWS provider version: v2.20.0 with Terraform (0.12.x). Tested on: Terraform v0.12.3
provider.aws v2.20.0 |
It is still present here:
|
@Sytten - You may want to try out the lifecycle workaround: lifecycle {
ignore_changes = "lambda_multi_value_headers_enabled"
} |
Yeah thats what I did, still I didnt have this problem before so its a regression |
I'm seeing the same issue and also with
|
+1 |
It is still occur here:
|
I'm seeing this (and also
Also |
This issue seems to have been resolved in more up-to-date versions of Terraform; if the problem persists, please feel free to open a new issue! |
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. |
Community Note
Terraform Version
Terraform v0.11.13
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
The code provided above is just a sample for an existing instance type target group in AWS that already has been created using Terraform and should not reflect in either
terraform plan
orterraform apply
.Actual Behavior
Although the terraform resource for the target group above is instance type and it already exists. It suggests the following change every time that I try to do a terraform plan or terraform apply:
lambda_multi_value_headers_enabled: "" => "false"
It is understandable if it suggests for this attribute change if the target group was of lambda type. However, a prompt for the change doesn't make sense if the target group is not of lambda type. I would recommend that the attribute change should only be prompted when the target group type is lambda. However, if that is not the case and there is a reason behind that attribute change to be supplied against an instance type target group, then please advise.
Steps to Reproduce
Either of the following against an existing instance type target group:
terraform plan
terraform apply
Temporary workaround
Adding a
lifecycle
block withignore_changes
forlambda_multi_value_headers_enabled
in theaws_alb_target_group
resource for an instance type target group will stop prompting for the change whenterraform plan
orterraform apply
are executed.References
Listed below are the original feature request that was raised and the pull request that included this new change for
lambda_multi_value_headers_enabled
:The text was updated successfully, but these errors were encountered: