diff --git a/.changelog/36423.txt b/.changelog/36423.txt new file mode 100644 index 00000000000..164dda3c323 --- /dev/null +++ b/.changelog/36423.txt @@ -0,0 +1,3 @@ +```release-note:bug +resource/aws_lb_target_group: Use the configured `ip_address_type` value when `target_type` is `instance` +``` diff --git a/.changelog/38323.txt b/.changelog/38323.txt new file mode 100644 index 00000000000..5871ffbf3f4 --- /dev/null +++ b/.changelog/38323.txt @@ -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 (`{}`) +``` \ No newline at end of file diff --git a/internal/service/elbv2/target_group.go b/internal/service/elbv2/target_group.go index 2cae004dfe0..2ea11d95896 100644 --- a/internal/service/elbv2/target_group.go +++ b/internal/service/elbv2/target_group.go @@ -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)) }