Unable to access EC2 instance?
In the EC2 instance details, i am finding this error "User is not authorized to perform: compute-optimizer:GetEnrollmentStatus on resource: * with an explicit deny in a service control policy" under Amazon Compute Optimizer section. Because of this while I am connecting to EC2, it is showing error as "verify that your iam policy is correctly configured to use ec2 instance connect."
I don't know your situation, but if you're in an Enterprise environment you may find that the team in charge of AWS governance has applied Service Control Policies (SCPs) in your Organization that prohibit what you're trying to do.
Unable to access EC2 instance?asked 2 months ago
S3 bucket access on EC2 Instance using boto3Accepted Answerasked 9 days ago
Unable to connect to EC2 instance in private Subnetasked a year ago
Changing IAM Role on EC2 instance: Internal Errorasked 2 years ago
Switch an EC2 instance from on-demand to spot pricingasked 3 months ago
Did not have IAM permissions to process tags on AWS::EC2::Instance resourceasked a year ago
User: anonymous is not authorized with an explicit denyasked 3 years ago
Unable to Access E2 Instanceasked 2 years ago
EC2 Instance Restore: "You are not authorized to perform this operation"Accepted Answerasked a year ago
Unable to access Internet from an EC2 instanceasked 3 years ago