Troubleshooting AWS Assurance identity and access
Use the following information to help you diagnose and fix common issues that you might encounter when working with AWS Assurance and IAM.
I am not authorized to perform an action in AWS Assurance
If you get an error that you’re not authorized to perform an action, your policies must allow that action.
The following example error occurs when the mateojackson
IAM user tries to view an environment but doesn’t have the assurance:GetEnvironment permission.
User: arn:aws:iam::111122223333:user/mateojackson is not authorized to perform: assurance:GetEnvironment on resource: arn:aws:assurance:us-east-1:111122223333:environment/a1b2c3d4-5678-90ab-cdef-EXAMPLE11111
In this case, the policies for the mateojackson user must be updated to allow access to the environment with the assurance:GetEnvironment action. If you need help, contact your AWS administrator.
I’m signed in to the web application, but I can’t perform an action
When you sign in to the web application through IAM Identity Center, a request must be allowed by both of the following:
-
The permissions policy of the environment’s Identity Center role.
-
A permission set assignment for you or one of your groups, at the environment or for the project.
Ask your administrator to check both. Changes to permission set assignments take effect after a short delay.
I get an access denied error in an environment that uses a customer managed key
If the environment uses a customer managed key, AWS Assurance uses your credentials to encrypt and decrypt content. The request fails if the key policy doesn’t let you use the key. It also fails if the key is disabled or scheduled for deletion. Ask your key administrator to check the key policy and key state. For more information, see Encryption at rest for AWS Assurance.
I get an error about the AWS Assurance service-linked role
AWS Assurance creates its service-linked role, and adds and removes the role’s inline policies, with your credentials. If you don’t have the IAM permission that a step needs, the request fails with a ValidationException and one of the following errors.
| Error | Cause | Resolution |
|---|---|---|
|
|
You don’t have |
Grant |
|
|
You don’t have |
Grant |
|
|
You don’t have |
Grant |
I am not authorized to perform iam:PassRole
If you get an error that you’re not authorized to perform iam:PassRole, your policies must allow you to pass the role to AWS Assurance.
The following example error occurs when an IAM user named marymajor tries to create an environment with an operator access role. The marymajor user doesn’t have permission to pass the role to AWS Assurance.
User: arn:aws:iam::111122223333:user/marymajor is not authorized to perform: iam:PassRole
In this case, the policies for the marymajor user must be updated to allow the iam:PassRole action on the role, with the iam:PassedToService condition set to assurance.amazonaws.com. If you need help, contact your AWS administrator.
I want to allow people outside of my AWS account to access my AWS Assurance resources
AWS Assurance doesn’t support resource-based policies. To give people outside your account access, use one of the following options:
-
To let users sign in to the web application, add them to your IAM Identity Center directory and assign them a permission set. For more information, see Signing in with IAM Identity Center.
-
To include resources from another account in your assessments, connect that account to your environment. For more information, see Cross-account assessments.
-
To give principals in another account access to the AWS Assurance API, create a role in your account that those principals can assume. For more information, see Providing access to an IAM user in another AWS account that you own and Providing access to AWS accounts owned by third parties in the IAM User Guide.