在env中找到部分凭证,但缺少:AWS_SECRET_ACCESS_KEY [英] Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY

查看:523
本文介绍了在env中找到部分凭证,但缺少:AWS_SECRET_ACCESS_KEY的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只需使用我的AWS Access和密钥在我的计算机上配置AWS CLI.当我尝试使用AWS CLI时,虽然它给了我这个错误.

Just configured the AWS CLI on my computer with my AWS Access and Secret Key. When I try to use the AWS CLI though it gives me this error.

Partial credentials found in env, missing: AWS_SECRET_ACCESS_KEY

我去了〜/.aws/config,确保那里有足够的凭证,包括AWS秘密密钥,所以我不确定为什么它对我at目结舌.

I went to ~/.aws/config, and sure enough those credentials are there, including the AWS Secret Key, so I'm not sure why its squawking at me.

推荐答案

您应拥有此文件~/.aws/credentials 并且内容应采用以下格式:

You should have this file ~/.aws/credentials and the contents should be in the following format:

[default]
aws_access_key_id = XXXXXXXXXXXXXXXXXX
aws_secret_access_key = XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

这篇关于在env中找到部分凭证,但缺少:AWS_SECRET_ACCESS_KEY的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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