簡體   English   中英

Packer錯誤:“ amazon-ebs:查詢AMI:AuthFailure錯誤”

[英]Packer Error: “amazon-ebs: Error querying AMI: AuthFailure”

我正在嘗試創建在這里看到的打包程序版本: 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.

我嘗試為用戶提供AWS中的AmazonEC2FullAccess策略。 我的命令正確嗎?

我在Windows 8上使用Powershell。

感謝您的幫助@ MathiasR.Jessen。

憑據位於credentials.csv文件中。 我用Excel打開了此文件,單擊列C2並將值復制到那里。 這是一個問題,因為excel在值框的開頭加了一個等號:/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM