Skip to content

Commit

Permalink
fixup! Stop using DualStack subnets by default
Browse files Browse the repository at this point in the history
  • Loading branch information
johngmyers committed Oct 3, 2023
1 parent 0695b55 commit 6a6ab47
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions upup/pkg/fi/cloudup/awstasks/launchtemplate_target_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ func (t *LaunchTemplate) RenderAWS(c *awsup.AWSAPITarget, a, e, changes *LaunchT
return err
}

primaryIPv6 := false
if fi.ValueOf(t.IPv6AddressCount) > 0 {
primaryIPv6 = true
}

// @step: lets build the launch template data
data := &ec2.RequestLaunchTemplateData{
DisableApiTermination: fi.PtrTo(false),
Expand All @@ -55,6 +60,7 @@ func (t *LaunchTemplate) RenderAWS(c *awsup.AWSAPITarget, a, e, changes *LaunchT
DeleteOnTermination: aws.Bool(true),
DeviceIndex: fi.PtrTo(int64(0)),
Ipv6AddressCount: t.IPv6AddressCount,
PrimaryIpv6: fi.PtrTo(primaryIPv6),
},
},
}
Expand Down

0 comments on commit 6a6ab47

Please sign in to comment.