Skip to content

Commit 62bc287

Browse files
Merge pull request #8152 from r4f4/capi-aws-imds
CORS-2898: capi/aws: configure IMDS
2 parents 1df0049 + 0d3b165 commit 62bc287

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)