Steps to Reproduce
Adding AWS Provider using "Connect via Credentials" works as expected.
Issue:
Not able to add AWS Provider using "Connect assuming IAM Role".
Create CloudFormation Template in AWS account.
Copy Role ARN
Set Session name "prowler-scan"
Set Session timeout "3600"
Error: Provider not set
Error: AWS assume role error - Unable to locate credentials
Expected behavior
Add AWS Cloud Provider via Prowler UI using AWS IAM Role
Actual Result with Screenshots or Logs
See below Environment Resource for screenshots
How did you install Prowler?
Docker (docker pull toniblyx/prowler)

Environment Resource
On AWS EC2 Instance:
OS Running: CIS Ubuntu Linux 22.04 LTS Benchmark - Level 1 - v04 -80ec131e-1631-4b92-92cc-ef35c56c3ec8
R53>ALB>443>TG:3000>EC2(private subnet) with NAT Gateway attached
Error: Provider has no secret

On Docker Desktop:
OS Running: Windows 11 Enterprise (24H2)
Error: AWSAssumeRoleError[1012]: AWS assume role error - Unable to locate credentials

OS used
AWS EC2:
CIS Ubuntu Linux 22.04 LTS Benchmark - Level 1 - v04 -80ec131e-1631-4b92-92cc-ef35c56c3ec8
Docker Desktop:
OS Running: Windows 11 Enterprise (24H2)
Prowler version
5.5.1
Pip version
N/A
Context
Using IAM roles to securely delegate access to AWS resources without hardcoding credentials or relying on local profiles. This aligns with AWS best practices for least privilege and credential management, especially in environments like EC2 or containerized deployments where roles can be assumed dynamically.
Steps to Reproduce
Adding AWS Provider using "Connect via Credentials" works as expected.
Issue:
Not able to add AWS Provider using "Connect assuming IAM Role".
Create CloudFormation Template in AWS account.
Copy Role ARN
Set Session name "prowler-scan"
Set Session timeout "3600"
Error: Provider not set
Error: AWS assume role error - Unable to locate credentials
Expected behavior
Add AWS Cloud Provider via Prowler UI using AWS IAM Role
Actual Result with Screenshots or Logs
See below Environment Resource for screenshots
How did you install Prowler?
Docker (docker pull toniblyx/prowler)

Environment Resource
On AWS EC2 Instance:
OS Running: CIS Ubuntu Linux 22.04 LTS Benchmark - Level 1 - v04 -80ec131e-1631-4b92-92cc-ef35c56c3ec8
R53>ALB>443>TG:3000>EC2(private subnet) with NAT Gateway attached
Error: Provider has no secret
On Docker Desktop:
OS Running: Windows 11 Enterprise (24H2)
Error: AWSAssumeRoleError[1012]: AWS assume role error - Unable to locate credentials
OS used
AWS EC2:
CIS Ubuntu Linux 22.04 LTS Benchmark - Level 1 - v04 -80ec131e-1631-4b92-92cc-ef35c56c3ec8
Docker Desktop:
OS Running: Windows 11 Enterprise (24H2)
Prowler version
5.5.1
Pip version
N/A
Context
Using IAM roles to securely delegate access to AWS resources without hardcoding credentials or relying on local profiles. This aligns with AWS best practices for least privilege and credential management, especially in environments like EC2 or containerized deployments where roles can be assumed dynamically.