Skip to content

Commit 17ba917

Browse files
committed
CORS-3426: capi: aws: fixing assigning public IPs
With the fix merged in upstream CAPA, this should work even for BYO VPCs.
1 parent 3a517ad commit 17ba917

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/asset/machines/aws/awsmachines.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ func GenerateMachines(clusterID string, in *MachineInput) ([]*asset.RuntimeFile,
8282
SSHKeyName: ptr.To(""),
8383
IAMInstanceProfile: fmt.Sprintf("%s-master-profile", clusterID),
8484
Subnet: subnet,
85+
PublicIP: ptr.To(in.PublicIP),
8586
AdditionalTags: in.Tags,
8687
RootVolume: &capa.Volume{
8788
Size: int64(mpool.EC2RootVolume.Size),

0 commit comments

Comments
 (0)