File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
broker/cloud_run/lsst/ps_to_storage Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ survey="${3:-lsst}"
1212region=" ${4:- us-central1} "
1313# get the environment variable
1414PROJECT_ID=$GOOGLE_CLOUD_PROJECT
15+ PROJECT_NUMBER=$( gcloud projects describe " $PROJECT_ID " --format=" value(projectNumber)" )
1516
1617MODULE_NAME=" alerts-to-storage" # lower case required by cloud run
1718ROUTE_RUN=" /" # url route that will trigger main.run()
@@ -37,7 +38,7 @@ ps_subscription_avro=$(define_GCP_resources "${survey}-alert_avros-counter")
3738ps_topic_avro=$( define_GCP_resources " projects/${PROJECT_ID} /topics/${survey} -alert_avros" )
3839ps_trigger_topic=$( define_GCP_resources " ${survey} -alerts_raw" )
3940runinvoker_svcact=" cloud-run-invoker@${PROJECT_ID} .iam.gserviceaccount.com"
40-
41+ service_account= " service- ${PROJECT_NUMBER} @gcp-sa-pubsub.iam.gserviceaccount.com "
4142if [ " ${teardown} " = " True" ]; then
4243 # ensure that we do not teardown production resources
4344 if [ " ${testid} " != " False" ]; then
You can’t perform that action at this time.
0 commit comments