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.
-Rashmi
Try adding AmazonEC2FullAccess CreateKeyPair 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 CreateKeyPair policy. Attach it. This worked for me.
Yes Giving AmazonEC2FullAccess to the IAM user group solved the issue.
Above screen shows that when you create the group you are supposed to give access to the service.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With