How to launch and access an instance using AWS-CLI

+1 vote
How can i launch an EC2 instance using AWS-CLI?
Nov 21, 2018 in AWS by Jino
• 5,820 points
1,917 views

2 answers to this question.

0 votes
Yes you can launch and access an ec2 instance using aws-cli.

You have to configure your IAM user using AWS-CLI

then you need to run the following commands given here in the documentation.

https://docs.aws.amazon.com/cli/latest/userguide/tutorial-ec2-ubuntu.html#launch-and-connect
answered Nov 21, 2018 by Nabarupa
0 votes
aws ec2 run-instances --image-id ami-id --key-name yourkeyname --instance-type t2.micro --region us-east-1 --subnet-id your-subnet-id --count 1
Use this command and you can create an EC2 instance. To access it you will need either putty or a cli tool like cmder.
answered Feb 23, 2019 by Shashank
• 1,370 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to launch and configure an EMR cluster using boto

Boto and the underlying EMR API is ...READ MORE

answered Sep 12, 2018 in AWS by Priyaj
• 58,020 points
4,895 views
0 votes
1 answer

How to delete an IAM user using AWS CLI?

Hi@akhtar, You can delete the specified IAM user. ...READ MORE

answered Nov 3, 2020 in AWS by MD
• 95,460 points
1,830 views
0 votes
1 answer
0 votes
1 answer

AWS S3 uploading hidden files by default

versioning is enabled in your bucket. docs.aws.amazon.com/AmazonS3/latest/user-guide/….... the ...READ MORE

answered Oct 4, 2018 in AWS by Priyaj
• 58,020 points
5,958 views
–1 vote
1 answer

How to decrypt the encrypted S3 file using aws-encryption-cli --decrypt

Use command : aws s3 presign s3://mybucket/abc_count.png you get ...READ MORE

answered Oct 22, 2018 in AWS by Priyaj
• 58,020 points
5,204 views
+1 vote
3 answers
+1 vote
3 answers

How to get ARN for s3 Bucket using aws cli .

An ARN is a non-opaque, constructible identifier, ...READ MORE

answered Aug 16, 2018 in AWS by Priyaj
• 58,020 points
5,645 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP