Custom CloudFormation resource to import an SSH public key to the AWS EC2 service.
The custom resource is very simple to deploy and use.
- Build and deploy the SAM application:
For more information about the resources deployed as part of this process, see the SAM template.
sam build sam deploy --guided
- Call the custom resource in your CloudFormation template with the public key you wish to import - see the example template.