Error creating Key Pair: You are not authorized to perform this operation

0 votes

I am trying to create an EC2 instance and on the last step of launching I try to create a key pair ( which will generate a .pem file for login) and I get the below error. Error Error creating Key Pair: You are not authorized to perform this operation.

Can anyone tell me what authentication should I give to my IAM right now I have Admin access.

Not very sure what is causing the Issue.

Sep 19, 2018 in AWS by bug_seeker
• 15,310 points

1 answer to this question.

0 votes

Try adding AmazonEC2FullAccess policy.

If you are not sure how to do it:

Log in to IAM, then choose necessary user and on Permissions tab click Add permission button. On next page click on Attach existing policies directly button and look for AmazonEC2FullAccesspolicy. Attach it. This worked for me.

answered Sep 19, 2018 by Priyaj
• 56,160 points

Related Questions In AWS

0 votes
3 answers
+1 vote
1 answer

Invalid hostname error when connecting to S3 using secret key

Hey, it works perfectly fine you just ...READ MORE

answered Oct 11, 2018 in AWS by Archana
• 4,090 points
+5 votes
2 answers

AWS EC2 Instances are not getting to internet access

Check your VPC settings, whether you are ...READ MORE

answered Oct 16, 2018 in AWS by Omkar
• 67,120 points
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

AWS Access Key error when uploading to S3

You can try getting creating a new ...READ MORE

answered Feb 6 in AWS by Priyaj
• 56,160 points