How to create key pair in aws using cloudformation?
1 Answer(s) Available
Answer # 1 #
To create a new key pair, omit the PublicKeyMaterial property from the template. When Amazon EC2 creates a new key pair, the private key is saved to an AWS Systems Manager Parameter Store. The name of the Systems Manager parameter follows the format /ec2/keypair/{key_pair_id}.