Skip to content

Commit

Permalink
Changing aws_lb_target_group protocol_version should force new resource
Browse files Browse the repository at this point in the history
  • Loading branch information
github-vincent-miszczak committed Feb 26, 2021
1 parent 8bd3e35 commit 061bd20
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions aws/resource_aws_lb_target_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,7 @@ func resourceAwsLbTargetGroup() *schema.Resource {
"HTTP1",
"HTTP2",
}, true),
DiffSuppressFunc: func(k, old, new string, d *schema.ResourceData) bool {
if d.Get("target_type").(string) == elbv2.TargetTypeEnumLambda {
return true
}
switch d.Get("protocol").(string) {
case elbv2.ProtocolEnumHttp, elbv2.ProtocolEnumHttps:
return false
}
return true
},
ForceNew: true,
},

"vpc_id": {
Expand Down

0 comments on commit 061bd20

Please sign in to comment.