Unable to launch a P3 instance

0

EC2FullAccess permission was granted to the IAM user, and it can launch any other type of EC2 instance except p3 instance. I increased limit of running on-demand all p instance and i am sure this new instance does not reach the limit. The error code is: You are not authorized to perform this operation. Encoded authorization failure message

What should i do to get the authorization?

asked a year ago356 views
1 Answer
0

Can you try to decode the authorization failure message so we can further troubleshoot? https://aws.amazon.com/premiumsupport/knowledge-center/ec2-not-auth-launch/

profile pictureAWS
answered a year ago
  • Have you checked for service control polices blocking you? Here is an example https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps_examples_ec2.html

  • Of course, see the following message: "DecodedMessage": "{"allowed":false,"explicitDeny":true,"matchedStatements":{"items":[{"statementId":"","effect":"DENY","principals":{"items":[{"value":"xxx"}]},"principalGroups":{"items":[]},"actions":{"items":[{"value":"ec2:RunInstances"}]},"resources":{"items":[{"value":"arn:aws:ec2:::instance/"}]},"conditions":{"items":[{"key":"ec2:InstanceType","values":{"items":[{"value":".10xlarge"},{"value":".12xlarge"}]}},{"key":"ec2:InstanceType","values":{"items":[{"value":".??xlarge"},{"value":".???xlarge"},{"value":"p."},{"value":".metal"}]}}]}}]},"failures":{"items":[]},"context":{"principal":{"id":"xxx","name":"initial-admin-user-xxxxxxxxxxxx","arn":"arn:aws:iam::xxxxxxxxxxxx:user/initial-admin-user-xxxxxxxxxxxx"},"action":"ec2:RunInstances","resource":"arn:aws:ec2:ap-northeast-1:xxxxxxxxxxxx:instance/","conditions":{"items":[{"key":"ec2:MetadataHttpPutResponseHopLimit","values":{"items":[{"value":"1"}]}},{"key":"ec2:InstanceMarketType","values":{"items":[{"value":"on-demand"}]}},{"key":"aws:Resource","values":{"items":[{"value":"instance/"}]}},{"key":"aws:Account","values":{"items":[{"value":"xxxxxxxxxxx"}]}},{"key":"ec2:AvailabilityZone","values":{"items":[{"value":"ap-northeast-1c"}]}},{"key":"ec2:ebsOptimize

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions