View a markdown version of this page

Troubleshooting AWS Assurance identity and access - AWS Assurance

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

The AWS Assurance service-linked role does not exist in this account and failed to be created

You don’t have iam:CreateServiceLinkedRole for assurance.amazonaws.com. AWS Assurance calls CreateServiceLinkedRole every time that you create an environment or accept an invitation, so this error can appear even when the role exists. For an organization environment, the error names the management account’s service-linked role.

Grant iam:CreateServiceLinkedRole, and then create the environment or accept the invitation again.

AWS Assurance could not grant its service-linked role access to the environment’s evidence resources

You don’t have iam:PutRolePolicy on the AWSServiceRoleForAssurance role, or the role has reached its quota of inline policies. AWS Assurance adds an inline policy to the role when you set a customer managed key or connect an Amazon S3 bucket. The error includes the details that IAM returned.

Grant iam:PutRolePolicy on the role, and then set the key or connect the bucket again.

AWS Assurance could not remove its service-linked role’s access to the environment’s evidence resources

You don’t have iam:DeleteRolePolicy on the AWSServiceRoleForAssurance role. AWS Assurance removes an inline policy when you clear the customer managed key, remove the last S3 connection to a bucket, or delete an environment that has a key or an S3 connection.

Grant iam:DeleteRolePolicy on the role, and then repeat the request.

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: