【发布时间】:2021-11-05 18:16:29
【问题描述】:
我似乎无法让我的 AWS 提供商在 Docker 容器中使用我的 AWS 凭证
到目前为止,我已经运行了所有这些
serverless config credentials --provider provider --key key --secret secret
&
aws configure
☝️ 浏览提示并插入我的信息
&
export AWS_ACCESS_KEY_ID=blah
export AWS_SECRET_ACCESS_KEY=blah
export AWS_DEFAULT_REGION=east-whatever
但是,还是被 AWS 阻止
ServerlessError: AWS provider credentials not found. Learn how to set up AWS provider credentials in our docs here:.
我还多次生成并重新生成了我的 IAM 凭据,当我运行 aws configure list 时它也会返回
Name Value Type Location
---- ----- ---- --------
profile <not set> None None
access_key ****************67GT shared-credentials-file
secret_key ****************6glt shared-credentials-file
region us-east-2 config-file ~/.aws/config
我不知道还能做什么,我在 Ubuntu 20.04 上使用 Bash
【问题讨论】:
-
因为我可以有配置文件尚未设置你为什么不尝试手动创建 creatigg config snd 凭据文件
标签: amazon-web-services aws-lambda serverless-framework ubuntu-20.04