aws-ec2-key-pair-private-key-create-output

EC2 returns a newly generated private key only in the CreateKeyPair response.

awscritical service: aws:ec2 emits ExposesCredential

Where it sits

locationCreateKeyPair.KeyMaterial
location kindoutput_value
data kindsprivate_key credential
emits edgeExposesCredential
serviceEC2 (aws:ec2)

Collection recipe

access modecreation_response_only
operationCreateKeyPair
response pathKeyMaterial
encodingstring
params{"KeyName": "\u003ckey-name\u003e"}

Required permissions

ec2:CreateKeyPair

References

move · open · esc close