Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I would like to launch my stack using a keypair that is created as part of the CloudFormation.

Is that possible?

....
"Resources": {
    "ReverseProxyKeyPair": {
        "Type": "AWS::EC2::KeyPair",
        "Properties": {
            "KeyName": "reverse_proxy"
        }
    },
....

was a guess, but hasn't worked. I haven't tracked down a schema for CloudFormation to say this isn't possible.

Most of the examples assume a KeyPair has already been created - I assume because there's only one chance to download it, at creation-time. But I'd like to dynamically create one, and then use it as an Output and dump it into S3 (say).

Or, is this a silly idea?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

This is a list of all the resource types supported by CloudFormation; a key pair isn't listed:

http://docs.amazonwebservices.com/AWSCloudFormation/latest/UserGuide/aws-template-resource-type-ref.html

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.