diff --git a/internal/service/elbv2/target_group.go b/internal/service/elbv2/target_group.go index 2ff5a14f0fe0..c284d6d53510 100644 --- a/internal/service/elbv2/target_group.go +++ b/internal/service/elbv2/target_group.go @@ -390,11 +390,8 @@ func resourceTargetGroupCreate(ctx context.Context, d *schema.ResourceData, meta input.ProtocolVersion = aws.String(d.Get("protocol_version").(string)) } input.VpcId = aws.String(d.Get("vpc_id").(string)) - - if targetType == elbv2.TargetTypeEnumIp { - if v, ok := d.GetOk("ip_address_type"); ok { - input.IpAddressType = aws.String(v.(string)) - } + if v, ok := d.GetOk("ip_address_type"); ok { + input.IpAddressType = aws.String(v.(string)) } }