我正在尝试创建如下所示的打包构建:https://www.packer.io/intro/getting-started/build-image.html
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。
发布于 2015-07-21 03:14:17
谢谢你的帮助,@MathiasR.Jessen。
凭据位于credentials.csv文件中。我用Excel打开了这个文件,单击了C2列,然后将值复制到那里。这是一个问题,因为excel会在值框的开头加上一个等号:/
https://stackoverflow.com/questions/31524186
复制相似问题