some comments explaining the reason

This commit is contained in:
KensoDev 2017-04-04 13:02:05 -07:00
parent 169afb2351
commit 8ac077022e
1 changed files with 2 additions and 0 deletions

View File

@ -511,6 +511,8 @@ func resourceAwsEcsLoadBalancerHash(v interface{}) int {
var buf bytes.Buffer
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"}
for i := range optionalLoadBalancerParams {