Kevin
10/19/2021, 8:09 PMAZURE_STORAGE_CONNECTION_STRING
environment variable or save connection string as Prefect secret.')Kevin
10/19/2021, 8:09 PMKevin
10/19/2021, 8:10 PMKevin Kho
Kevin
10/19/2021, 8:14 PMazure_store = Azure(container="prefect")
Kevin
10/19/2021, 8:15 PMKevin Kho
connection_string_secret
when you declare that. From the doc string:
connection_string_secret (str, optional): the name of a Prefect secret that contains an Azure connection string for communicating with Blob storage. If not provided the value set in the environment as AZURE_STORAGE_CONNECTION_STRING will be used
Kevin Kho
Kevin Kho
Kevin
10/19/2021, 8:16 PMKevin Kho
prefect agent kubernetes start --env AZURE_STORAGE_CONNECTION_STRING=…..
Kevin
10/19/2021, 8:21 PMKevin Kho
Kevin
10/19/2021, 8:31 PMKevin
10/19/2021, 8:31 PMKevin
10/19/2021, 8:32 PMKevin
10/19/2021, 8:32 PMKevin Kho
Kevin Kho
Kevin
11/02/2021, 2:13 PMKevin
11/02/2021, 2:14 PM- name: PREFECT__CONTEXT__SECRETS__AZURE_STORAGE_CONNECTION_STRING
valueFrom:
secretKeyRef:
name: prefect-secrets
key: az_connection_string
Anna Geller
STORAGE = Azure(
container="flows",
connection_string_secret="AZURE_STORAGE_CONNECTION_STRING",
)
so no need to put it as Kubernetes SecretKevin
11/02/2021, 2:48 PMAnna Geller
Kevin
11/02/2021, 2:50 PMKevin
11/02/2021, 6:52 PMAnna Geller
Anna Geller
Kevin
11/02/2021, 6:59 PMAnna Geller
Kevin
11/02/2021, 7:00 PMAnna Geller
Kevin
11/02/2021, 7:01 PMAnna Geller
SecretBase
class https://docs.prefect.io/api/latest/tasks/secrets.html#secretbaseAnna Geller
Kevin
11/02/2021, 7:04 PM