hashicorp / terraform-provider-aws

The AWS Provider enables Terraform to manage AWS resources.
https://registry.terraform.io/providers/hashicorp/aws
Mozilla Public License 2.0
9.85k stars 9.2k forks source link

[Bug]: Parameters for application load balancer gets added to gateway load balancer #27962

Open mayaray26 opened 2 years ago

mayaray26 commented 2 years ago

Terraform Core Version

0.14.8

AWS Provider Version

=3.29.1

Affected Resource(s)

aws_lb

Expected Behavior

It should create gateway load balancer without the below parameters.

drop_invalid_header_fields enable_http2 enable_waf_fail_open idle_timeout

Actual Behavior

It's adding the default values of below parameters:

drop_invalid_header_fields = false enable_http2 = true enable_waf_fail_open = false MicrosoftTeams-image (2)

idle_timeout = 60

Relevant Error/Panic Output Snippet

No response

Terraform Configuration Files

resource "aws_lb" "gateway_lb" { name = GWLB01 load_balancer_type = "gateway" enable_cross_zone_load_balancing = true enable_deletion_protection = true subnets = [subnet-xxxxx, subnet-yyyy]

}

Steps to Reproduce

terraform init terraform plan terraform apply

Debug Output

No response

Panic Output

No response

Important Factoids

We are running import in existing infrastructure. We want it to give below output:

0 to add, 0 to change, 0 to destroy

Instead it's showing 1 to change

References

No response

Would you like to implement a fix?

No response

github-actions[bot] commented 2 years ago

Community Note

Voting for Prioritization

Volunteering to Work on This Issue

github-actions[bot] commented 1 week ago

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!