Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What IAM role is needed to deploy `cron.yaml`?

I am attempting to deploy a cron.yaml file with gcloud app deploy with a service account that has the "GAE admin" role on my project.

It is apparently not sufficient to update my cron config. It seems I need to give the service account the "project editor" role to continue.

The error I got was:

ERROR: (gcloud.app.deploy) Server responded with code [403]:
  Forbidden Unexpected HTTP status 403.
  You do not have permission to modify this app

Is there a way to update cron.yaml without requiring the "project editor" role.

like image 358
Steren Avatar asked Jun 01 '18 15:06

Steren


People also ask

What is Cron Yaml?

A cron.yaml definition file is a type of deployable and therefore can be deployed to App Engine in the same manner as a service with gcloud. To deploy a cron.yaml , simply run: gcloud app deploy cron.yaml.

What is cron job in Google App Engine?

The App Engine Cron Service allows you to configure regularly scheduled tasks that operate at defined times or regular intervals.


1 Answers

As documented here, to deploy cron.yaml, you need the "Cloud Scheduler > Cloud Scheduler Admin role".

like image 165
Steren Avatar answered Dec 22 '22 00:12

Steren