Charles Liu
03/15/2021, 6:38 PM# You'd set a secret in Prefect cloud containing your credentials as a JSON dictionary of the following form:
{"ACCESS_KEY": "your aws_access_key_id here",
"SECRET_ACCESS_KEY": "your aws_secret_access_key here"}
# For now the secret name is hardcoded, so you'd need to name the secret "AWS_CREDENTIALS"
# you'd then attach the secret to your `S3` storage as follows:
flow.storage = S3(..., secrets=["AWS_CREDENTIALS"])
Assuming AWS_CREDENTIALS has been declared on the Prefect Cloud side, is this how we pass functions into both storage=storage_type(secrets=['']) and KubernetesRun(image_pull_secrets=['']) for now?Kyle Moon-Wright
03/15/2021, 7:24 PMrun_config
to populate your AWS_CREDENTIALS at runtime against your Cloud backend - more information on this can be found in the documentation here.Charles Liu
03/15/2021, 8:34 PMKyle Moon-Wright
03/15/2021, 8:55 PMCharles Liu
03/15/2021, 9:16 PM