prowler: [Bug]: The assumed role ARN contains a value for resource type different than role, please input a valid ARN

Steps to Reproduce

  1. I was running python prowler.py --security-hub
  2. Then i got this output 2024-02-20 11:37:26,698 [File: audit_info.py:379] [Module: audit_info] CRITICAL: RoleArnParsingInvalidResourceType[372]: The assumed role ARN contains a value for resource type different than role, please input a valid ARN
  3. I already do the aws configure stuff

Expected behavior

The command should run checks for my aws account

Actual Result with Screenshots or Logs

image

How did you install Prowler?

Cloning the repository from github.com (git clone)

Environment Resource

Kali Linux

OS used

Kali Linux

Prowler version

Prowler 3.13.0

Pip version

pip

Context

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 22 (12 by maintainers)

Most upvoted comments

Hello @satoridev01 I recommend you using Prowler v5.3 because you are using an old version, if you want to continue using v3 please use the latest release which is 3.16.17.

Let us know if this fixes the issue you are facing.

Hi Pepe 👋, so I actually fixed the issue, here is what I did - it was not prowler related.

  1. I am using saml2aws tool to establish SSO connection using our SSO Platform Jumpcloud
  2. For some reason and this was the root cause for my issue I had this line in my ~/.aws/config file that I commented out role_arn = arn:aws:iam::<aws ID>:role/view-only
  3. Issue fixed 🎉 Thanks for reaching out Pepe!