Skip to content

CloudFormation custom resource to import an SSH public key

License

Notifications You must be signed in to change notification settings

Phuurl/cfn-ssh-key-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cfn-ssh-key-import

Custom CloudFormation resource to import an SSH public key to the AWS EC2 service.

Requirements

  • SAM CLI (built with 1.21.1)
  • Go (built with 1.15.8)

Usage

The custom resource is very simple to deploy and use.

  1. Build and deploy the SAM application:
    sam build
    sam deploy --guided
    For more information about the resources deployed as part of this process, see the SAM template.
  2. Call the custom resource in your CloudFormation template with the public key you wish to import - see the example template.