@Marvin Does the AwsCredentials in prefect-aws block support reading credentials from the credentials file on your local system? Or must you specify the access and secret keys?
m
Marvin
06/03/2024, 5:39 PM
It appears that the
AwsCredentials
block in the
prefect-aws
collection does support reading credentials from your local AWS credentials file. It does not require you to explicitly specify the access and secret keys, provided you configure it correctly.
Here's a brief code example:
Copy code
python
from prefect_aws import AwsCredentials
aws_credentials = AwsCredentials.load("BLOCK_NAME")
Additional resources:
- API documentation: Prefect AWS API Documentation
- Guideline for using secrets: Moving Data with Prefect
Furthermore, a related GitHub issue discusses how the AWS client parameters should be correctly assigned to an S3 bucket block, providing insight into integrating the credentials without directly specifying them in your code.
If there's any finer detail you'd like me to check or another aspect you'd like to dive into, feel free to ask!
k
Kevin Grismore
06/03/2024, 5:42 PM
it does, if you leave those fields empty it'll follow the standard AWS creds search sequence
j
Joshua Caskie
06/03/2024, 7:10 PM
@Kevin Grismore Okay interesting. I'm not seeing that on my end, but assuming it's something with how I'm saving the block.
I have this code in `blocks.py`:
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.