Does S3Result use the default `AWS_CREDENTIALS` secret? I'm having trouble setting credentials so th...
b
Does S3Result use the default
AWS_CREDENTIALS
secret? I'm having trouble setting credentials so that tasks are able to write with S3Result. This pattern does not seem to work either
Copy code
aws_credentials = PrefectSecret('AWS_CREDENTIALS')
with prefect.context(secrets={'AWS_CREDENTIALS': aws_credentials}):
    <task>
k
Hey @Brian Phillips, what error do you get? You can include the secret in your storage like
Copy code
flow.storage = S3(bucket="my-flows", secrets=["AWS_CREDENTIALS"])
to put it in the context
b
Ah perfect thanks, I was getting permission errors from boto3
k
Ah ok there is also an environment variable
"PREFECT__CLOUD__USE_LOCAL_SECRETS": "false"
to pull secrets from Cloud