1
0
mirror of https://github.com/openshift/installer.git synced 2026-02-05 06:46:36 +01:00

Merge pull request #8152 from r4f4/capi-aws-imds

CORS-2898: capi/aws: configure IMDS
This commit is contained in:
openshift-merge-bot[bot]
2024-03-23 20:43:26 +00:00
committed by GitHub

View File

@@ -85,6 +85,10 @@ func GenerateMachines(clusterID string, in *MachineInput) ([]*asset.RuntimeFile,
Encrypted: ptr.To(true),
EncryptionKey: mpool.KMSKeyARN,
},
InstanceMetadataOptions: &capa.InstanceMetadataOptions{
HTTPTokens: capa.HTTPTokensState(mpool.EC2Metadata.Authentication),
HTTPEndpoint: capa.InstanceMetadataEndpointStateEnabled,
},
},
}
awsMachine.SetGroupVersionKind(capa.GroupVersion.WithKind("AWSMachine"))