Skip to content

Latest commit

 

History

History

parameterized-ec2-deploy

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Deploy single EC2 instance with parameters

Parameters specified:

  • AMI ID
  • Instance Type
  • VPC ID
  • SSH Key Pair Name

To deploy SSH key pairs via AWS CLI use:

 aws ec2 create-key-pair --key-name DemoKeyPair --query 'KeyMaterial' --output text > DemoKeyPair.pem
 chmod 400 DemoKeyPair

More info at "How to launch a single EC2 instance via AWS CLI"