首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >打包程序错误:"amazon-ebs:查询AMI: AuthFailure时出错“

打包程序错误:"amazon-ebs:查询AMI: AuthFailure时出错“
EN

Stack Overflow用户
提问于 2015-07-21 02:52:48
回答 1查看 1.1K关注 0票数 0

我正在尝试创建如下所示的打包构建:https://www.packer.io/intro/getting-started/build-image.html

代码语言:javascript
复制
PS C:\dev\tutorials\packer> packer build -var 'aws_access_key=AKI---------' -var 'aws_secret_key==+---------------------------------------' example.json
amazon-ebs output will be in this color.

==> amazon-ebs: Prevalidating AMI Name...
==> amazon-ebs: Error querying AMI: AuthFailure: AWS was not able to validate the provided access credentials
==> amazon-ebs:         status code: 401, request id: []
Build 'amazon-ebs' errored: Error querying AMI: AuthFailure: AWS was not able to validate the provided access credentials
        status code: 401, request id: []

==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error querying AMI: AuthFailure: AWS was not able to validate the provided access credentials
        status code: 401, request id: []

==> Builds finished but no artifacts were created.

我已经尝试在亚马逊网络服务中为我的用户提供AmazonEC2FullAccess策略。我的命令正确吗?

我使用的是windows8,使用的是powershell。

EN

回答 1

Stack Overflow用户

发布于 2015-07-21 03:14:17

谢谢你的帮助,@MathiasR.Jessen。

凭据位于credentials.csv文件中。我用Excel打开了这个文件,单击了C2列,然后将值复制到那里。这是一个问题,因为excel会在值框的开头加上一个等号:/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31524186

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档