我有一个在本地工作的terraform脚本,但是当我发布到Terraform Cloud时,出现以下错误:
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
on main.tf line 1, in provider "aws":
1: provider "aws" {
我在其他成功运行的部署中以相同的方式设置了相同的变量,但似乎并没有通过凭据。
有关故障排除的任何方向,我们将不胜感激
AWS环境变量应为AWS_ACCESS_KEY_ID
和AWS_SECRET_ACCESS_KEY
。如果您有多个AWS Key,您还可以在$HOME/.aws/credentials
中使用AWS_PROFILE
环境变量来选择特定配置文件。