Timo
03/16/2021, 10:45 AMbotocore.exceptions.NoCredentialsError: Unable to locate credentials
I register the flow with the following method:
flow.storage = S3(
bucket="prefect-flows",
secrets=["AWS_CREDENTIALS"],
)
flow.register(project_name="abc")
The backend is set to cloud and I logged in successfully (prefect auth login ...
)
How could I use the AWS_CREDENTIALS secret which is set in the cloud?CA Lee
03/16/2021, 11:01 AMaws configure
and enter your access id and key accordingly.
Alternatively, you can also create a file called ~/.aws/credentials
, with the following format:
[default]
aws_access_key_id = xxx
aws_secret_access_key = yyy
Hope the above helpsTimo
03/16/2021, 11:33 AM