philip
06/05/2020, 1:58 AMnicholas
philip
06/05/2020, 2:00 AMtask = ShellTask()
with Flow("to_bigquery") as flow:
command = task(command='gsutil cp .... .....)philip
06/05/2020, 2:02 AMflow.run() it can success. But when i run on Prefect Server it have an error 401 Anonymous caller does not have storage.objects.list access to the Google Cloud Storage bucket.nicholas
GCP , which is why flow.run would succeed - it's running that in an authorized context.
Where is your agent running? Your flow's runtime context doesn't seem to be authorized.philip
06/05/2020, 2:09 AMnicholas
philip
06/05/2020, 2:13 AMnicholas
nicholas
philip
06/05/2020, 2:25 AMnicholas
nicholas
philip
06/05/2020, 2:51 AMnicholas
ShellTask or use a GCP service account credentials insteadphilip
06/05/2020, 3:09 AM