Skip to content

Commit 0d3b165

Browse files
committed
CORS-2898: capi/aws: configure IMDS
1 parent 1df0049 commit 0d3b165

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/asset/machines/aws/awsmachines.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ func GenerateMachines(clusterID string, in *MachineInput) ([]*asset.RuntimeFile,
8585
Encrypted: ptr.To(true),
8686
EncryptionKey: mpool.KMSKeyARN,
8787
},
88+
InstanceMetadataOptions: &capa.InstanceMetadataOptions{
89+
HTTPTokens: capa.HTTPTokensState(mpool.EC2Metadata.Authentication),
90+
HTTPEndpoint: capa.InstanceMetadataEndpointStateEnabled,
91+
},
8892
},
8993
}
9094
awsMachine.SetGroupVersionKind(capa.GroupVersion.WithKind("AWSMachine"))

0 commit comments

Comments
 (0)