Reputation: 33861
I'm trying to trigger a gcloud build however when invoked via curl with:
curl -X POST -T request.json -H "Authorization: Bearer ${gcloudBearer}" \
https://cloudbuild.googleapis.com/v1/projects/"$PROJECT_ID"/triggers/"$TRIGGER_ID":run
I get a response of:
{
"error": {
"code": 403,
"message": "The caller does not have permission",
"status": "PERMISSION_DENIED"
}
}
However the service account I have authenticated with has the following roles enabled:
Cloud Build Service Account
Do I need any additional permission / role? If so which role would this be?
Upvotes: 0
Views: 429
Reputation: 33861
I had "quotes"
around my project id by mistake (within the request.json file)... FML
Upvotes: 1