When my gitlab runner runs the following command:
time packer build -var "git_branch=$CI_BUILD_REF_NAME" -var "git_hash=$CI_BUILD_REF" -color=false packer-application.json
I get the following error:
Build 'amazon-ebs' errored: Error creating temporary keypair: UnauthorizedOperation: You are not authorized to perform this operation.
status code: 403, request id:
However, the command runs successfully if i ssh in to my gitlab runner and run the command manually.
Any ideas?