Skip to content

Commit

Permalink
Merge pull request #36423 from arianvp/arianvp-patch-1
Browse files Browse the repository at this point in the history
aws_lb_target_group: always support ip_address_type
  • Loading branch information
ewbankkit authored Jul 12, 2024
2 parents e9f4926 + 2a82a87 commit c48039b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/36423.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_lb_target_group: Use the configured `ip_address_type` value when `target_type` is `instance`
```
3 changes: 3 additions & 0 deletions .changelog/38323.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_pinpoint_app: Fix `interface conversion: interface {} is nil, not map[string]interface {}` panic when `campaign_hook` is empty (`{}`)
```
3 changes: 2 additions & 1 deletion internal/service/elbv2/target_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ func resourceTargetGroupCreate(ctx context.Context, d *schema.ResourceData, meta
}
input.VpcId = aws.String(d.Get(names.AttrVPCID).(string))

if targetType == awstypes.TargetTypeEnumIp {
switch targetType {
case awstypes.TargetTypeEnumInstance, awstypes.TargetTypeEnumIp:
if v, ok := d.GetOk(names.AttrIPAddressType); ok {
input.IpAddressType = awstypes.TargetGroupIpAddressTypeEnum(v.(string))
}
Expand Down

0 comments on commit c48039b

Please sign in to comment.