R/setup_buildemail.R
cr_setup_service.Rd
Give a service account the right permissions for googleCloudRunner operations
cr_setup_service(
account_email,
roles = cr_setup_role_lookup("local"),
json = Sys.getenv("GAR_CLIENT_JSON"),
email = Sys.getenv("GARGLE_EMAIL")
)
cr_setup_role_lookup(
type = c("local", "cloudrun", "bigquery", "secrets", "cloudbuild", "cloudstorage",
"schedule_agent", "run_agent", "compute")
)
The service account email e.g. accountId@projectid.iam.gserviceaccount.com
or 12345678@cloudbuild.gserviceaccount.com
the roles to grant access - default is all googleCloudRunner functions
the project clientId JSON
the email of an Owner/Editor for the project
the role
Other setup functions:
cr_setup_auth()
,
cr_setup_test()
,
cr_setup()