Skip to content

Instantly share code, notes, and snippets.

@hackcoderr
Created October 15, 2020 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hackcoderr/6bd462b3c9fde2d31d54caea099c0f8c to your computer and use it in GitHub Desktop.
Save hackcoderr/6bd462b3c9fde2d31d54caea099c0f8c to your computer and use it in GitHub Desktop.
aws ec2 create-key-pair --key-name your_key_pair_name
aws ec2 create-security-group --description cli_security --group-name your_security_group_name
aws ec2 run-instances --image-id ami-0947d2ba12ee1ff75 --instance-type t2.micro --security-group-ids your_security_group_id --key-name your_key_pair
aws ec2 create-volume --availability-zone your_availability_zone --volume-type gp2 --size 1
aws ec2 attach-volume --device sdb --instance-id your_instance_id --volume-id your_volume_id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment