How to launch and access an instance using AWS-CLI?

+1 vote
How can i launch an EC2 instance using AWS-CLI?
Nov 20, 2018 in AWS by Jino
• 5,560 points
159 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 20, 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 by Shashank
• 1,350 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
• 56,920 points
1,243 views
0 votes
1 answer
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
• 56,920 points
295 views
0 votes
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
• 56,920 points
667 views
+1 vote
3 answers

Log in to AWS using Access Key ID and Secret Access Key ID

Access keys consist of an access key ...READ MORE

answered Aug 17, 2018 in AWS by Priyaj
• 56,920 points
1,179 views
+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
• 56,920 points
1,569 views