当我的GitLab Runner运行以下命令时:
time packer build -var "git_branch=$CI_BUILD_REF_NAME" -var "git_hash=$CI_BUILD_REF" -color=false packer-application.json
我遇到了以下错误:
Build 'amazon-ebs' errored: Error creating temporary keypair: UnauthorizedOperation: You are not authorized to perform this operation.
status code: 403, request id:
然而,如果我通过 ssh 登录到我的 gitlab runner 并手动运行命令,则命令可以成功运行。
有什么想法吗?