验证 AWS 命令​​行界面凭证配置正确 [英] Verifying AWS Command Line Interface credentials are configured correctly

查看:25
本文介绍了验证 AWS 命令​​行界面凭证配置正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我似乎在运行命令以验证我的凭证配置是否正确以及我是否可以按照此处所述连接到 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:

  1. I went to AWS website and created an IAM user.
  2. For that user, I have gone to the security credentials tab and
  3. 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆