Thread
#prefect-community
    Brian Phillips

    Brian Phillips

    1 year ago
    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
    aws_credentials = PrefectSecret('AWS_CREDENTIALS')
    with prefect.context(secrets={'AWS_CREDENTIALS': aws_credentials}):
        <task>
    Kevin Kho

    Kevin Kho

    1 year ago
    Hey @Brian Phillips, what error do you get? You can include the secret in your storage like
    flow.storage = S3(bucket="my-flows", secrets=["AWS_CREDENTIALS"])
    to put it in the context
    Brian Phillips

    Brian Phillips

    1 year ago
    Ah perfect thanks, I was getting permission errors from boto3
    Kevin Kho

    Kevin Kho

    1 year ago
    Ah ok there is also an environment variable
    "PREFECT__CLOUD__USE_LOCAL_SECRETS": "false"
    to pull secrets from Cloud