Skip to content

AWSAssumeRoleError[1012]: AWS assume role error - An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid. #10689

@ArcherFX1

Description

@ArcherFX1

Issue search

  • I have searched the existing issues and this bug has not been reported yet

Which component is affected?

Prowler UI

Cloud Provider (if applicable)

No response

Steps to Reproduce

I followed the instructions to set up assumed roles in AWS using the CloudFormation script. Everything goes fine on the AWS side, but when I continue on Prowler, I get ...

AWSAssumeRoleError[1012]: AWS assume role error - An error occurred (InvalidClientTokenId) when calling the AssumeRole operation: The security token included in the request is invalid.

I am running this locally in Docker. This was working, and I had several AWS accounts onboarded. I have to remove the Prowler role from my main account, and when I tried to add it back in from scratch, it failed. I can, however, use an account ID and Secrets, and it works. I want to use the AssumeRoles.

Any suggestions

Expected behavior

Run cloudformaion in AWS then add the arn to prowler to onboard AWS account.

Actual Result with Screenshots or Logs

Image

How did you install Prowler?

Cloning the repository from github.com (git clone)

Environment Resource

Debian workstation using Docker

OS used

Debian 13

Prowler version

5.23

Python version

Python 3.13.5

Pip version

pip 25.1.1

Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions