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, 2020 in AWS by akhtar
• 38,180 points
122 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, 2020 by MD
• 95,140 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
• 58,100 points
4,125 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
• 58,100 points
1,047 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
• 58,100 points
1,995 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
• 58,100 points
2,740 views
0 votes
2 answers
0 votes
1 answer
0 votes
1 answer

How to edit files in the AWS S3 bucket from CLI?

Hi@akhtar, According to my knowledge,  you can't edit ...READ MORE

answered Jun 8, 2020 in AWS by MD
• 95,140 points
1,644 views
0 votes
1 answer

How to remove a rule from a security group from AWS CLI?

Hi@akhtar, You can remove the ingress rule from ...READ MORE

answered Jul 7, 2020 in AWS by MD
• 95,140 points
897 views