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,300 points
209 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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,140 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
116 views
+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
• 66,990 points
327 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 in AWS by Priyaj
• 56,140 points
716 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.