验证 AWS 命令行界面凭证配置正确 [英] Verifying AWS Command Line Interface credentials are configured correctly
问题描述
我似乎在运行命令以验证我的凭证配置是否正确以及我是否可以按照此处所述连接到 AWS 时遇到问题:
我已将这些值用于 AWS 访问密钥 ID 和 AWS 秘密访问密钥,但我不断收到上述错误消息.
我错过了什么?提前致谢.
您需要传递 profile
参数.此来自 AWS 的链接包含更多详细信息
I seem to have problems running a command to verify that my credentials are configured correctly and that I can connect to AWS as stated here:https://docs.aws.amazon.com/cli/latest/userguide/tutorial-ec2-ubuntu.html:
When running:
$ aws ec2 describe-regions --output table
I get the following output:
An error occurred (AuthFailure) when calling the DescribeRegions operation: AWS was not able to validate the provided access credentials
What am I missing?
After installing the AWS CLI (on a fedora machine), I ran
$ aws configure
for AWS Access Key ID and AWS Secret Access Key:
- I went to AWS website and created an IAM user.
- For that user, I have gone to the security credentials tab and
- I have created a new Access key, which is key value pair of Access key ID,Secret access key.
I have used those values for AWS Access Key ID and AWS Secret Access Key but I keep getting the above error message.
What am I missing? Thanks in advance.
You need to pass the profile
parameter. This link from AWS has more details
这篇关于验证 AWS 命令行界面凭证配置正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!