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,260 points
689 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.

For more, check out this AWS training today!

answered Apr 27, 2020 by MD
• 95,460 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,020 points
6,133 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,020 points
5,965 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,210 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,460 points
9,694 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,460 points
5,617 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