Created
October 15, 2020 10:00
-
-
Save hackcoderr/6bd462b3c9fde2d31d54caea099c0f8c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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