cr_setup_service: Give a service account the right permissions for...

Description Usage Arguments See Also

View source: R/setup_buildemail.R

Description

Give a service account the right permissions for googleCloudRunner operations

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
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")
)

Arguments

account_email

The service account email e.g. accountId@projectid.iam.gserviceaccount.com or 12345678@cloudbuild.gserviceaccount.com

roles

the roles to grant access - default is all googleCloudRunner functions

json

the project clientId JSON

email

the email of an Owner/Editor for the project

type

the role

See Also

Other setup functions: cr_setup_auth(), cr_setup_test(), cr_setup()


googleCloudRunner documentation built on Jan. 31, 2021, 1:05 a.m.