0
我試圖創建這裏看到的封隔器編譯:https://www.packer.io/intro/getting-started/build-image.html帕克錯誤:「亞馬遜EBS:錯誤查詢AMI:AuthFailure」
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在值框的開頭預先顯示一個等號:/這是我的問題。 –
使用'Import-Csv'將它導入到PowerShell中以避免這種問題:) –