some comments explaining the reason
This commit is contained in:
parent
169afb2351
commit
8ac077022e
|
@ -511,6 +511,8 @@ func resourceAwsEcsLoadBalancerHash(v interface{}) int {
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
m := v.(map[string]interface{})
|
m := v.(map[string]interface{})
|
||||||
|
|
||||||
|
// There are 2 types of load balancers: ELB/ALB
|
||||||
|
// In case of ELB `elb_name` is expected and for ALB `target_group_arn` is.
|
||||||
optionalLoadBalancerParams := []string{"target_group_arn", "elb_name"}
|
optionalLoadBalancerParams := []string{"target_group_arn", "elb_name"}
|
||||||
|
|
||||||
for i := range optionalLoadBalancerParams {
|
for i := range optionalLoadBalancerParams {
|
||||||
|
|
Loading…
Reference in New Issue