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中以避免这种问题:) –