Skip to content

diamondgem8/aws_CLIec2launch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

LAUNCH AN EC2 USING AWS CLI

Task 1; Access console via accesskeys

step 1 : Type aws configure and press enter
step 2 : type in your aws Access key ID and press enter
step 3 : input your aws secret Access key and click enter
step 4 : enter the region name from the aws management console and enter
step 5 : input your output format json and click enter

Alt text

task 2; Create a key pair

step 6: Input "aws ec2 create-key-pair --key-name<Kkeypair-Name> --query 'KeyMaterial' --output><keypair-name.pem>"

Alt text

task 3; Create a security group.

step 7: input "aws ec2 create-security-group --group-name <security group Name> --description"<Description>" "

Alt text

task 4: Authorize security group.

step 8; input "aws ec2 authorize-security-group ingress --group-name <security group name> --protocol tcp --port <port number> --cidr <IP address>"

Alt text

task 5: Launch Instances

step 9; "aws ec2 run-instances-image-id<ami-id> --count 1 -- instance type- <type> --Keyname <Keypair-Name> --security-groups <security group Name>"

Alt text

task 6: view running instances

step 10: input "aws ec2 describe-instances"

Alt text

About

Launch of an ec2 instance using aws CLI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published