How to create key from aws cli?

0 votes

Hi Guys,

I am new in aws cli. Can anyone help me, how can I create one key?

Apr 27 in AWS by akhtar
• 11,270 points
49 views

1 answer to this question.

0 votes

Hi@akhtar,
You can use the bellow given command to create a key.

$ aws ec2 create-key-pair --key-name mykey --query 'KeyMaterial' --output text > Mykey.pem

To make .pem file readable.

$ chmod 400 Mykey.pem

Hope this will help you.

answered Apr 27 by MD
• 24,500 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer

How to create a S3 bucket using AWS CLI?

You can use the following command:- C:\Users\priyj_kumar>aws s3api ...READ MORE

answered Feb 15, 2019 in AWS by Priyaj
• 57,530 points
2,857 views
0 votes
2 answers

How to create a VPC from scratch in AWS Console?

Creating a VPC from scratch is bit ...READ MORE

answered Feb 20, 2019 in AWS by Priyaj
• 57,530 points
619 views
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
• 57,530 points
774 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
• 57,530 points
1,554 views
0 votes
2 answers
0 votes
1 answer

How to configure aws cli?

Hi@akhtar, After installing aws cli in your system, ...READ MORE

answered Apr 27 in AWS by MD
• 24,500 points
44 views
0 votes
1 answer

How to update account credentials in aws cli?

Hi@akhtar, You can find one .aws folder in ...READ MORE

answered Apr 27 in AWS by MD
• 24,500 points
38 views