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"
All 8.x versions of Aria automation
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.
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.
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.