Deployment Fails with 'No Valid Credential Sources Found' Error in Aria Automation When Using Assume Role for AWS Authentication
search cancel

Deployment Fails with 'No Valid Credential Sources Found' Error in Aria Automation When Using Assume Role for AWS Authentication

book

Article ID: 381692

calendar_today

Updated On:

Products

VMware Aria Suite

Issue/Introduction

While using an assume role with AWS account we see deployments failing with an error:

"No valid credential sources found for AWS Provider.
Please see https://terraform.io/docs/providers/aws/index.html for more information on
providing credentials for the AWS Provider"

Environment

 All 8.x  versions of Aria automation

Cause

The error occurs because after switching AWS credentials configuration from using an IAM role to using an Assume Role method. Aria Automation, which relies on an older version of Terraform, does not support Assume Role authentication if the deployment contains AWS resources.

Resolution

Switch back to using the IAM role for authentication with AWS. As in the figure below, go to Assembler -> Infrastructure -> Cloud Accounts, change the Authentication method to Connect as IAM user.

This method is currently supported in Aria Automation and does not cause the error.

Additional Information

This issue only occurs when using Assume Role as the AWS authentication method. If we switch to IAM role authentication, the error is no longer present.

It is advised to use IAM roles for AWS credentials.