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,520 points
5,303 views

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
• 58,090 points

Related Questions In AWS

0 votes
1 answer

Using Shapely on AWS Lambda with Python 3

For some reason, the pip install of ...READ MORE

answered Oct 8, 2018 in AWS by Priyaj
• 58,090 points
2,593 views
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, 2019 in AWS by Priyaj
• 58,090 points
6,122 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