Hi, Is everyone using the AwsCredential block that...
# prefect-aws
Hi, Is everyone using the AwsCredential block that well working in prefect 2.0? Why can't I keep checking the keys of objects in the bucket due to the SignatureDoesNotMatch problem? If i hard code(write the access key and secert access key) in the flow, it will work. If this is the case, isn't there something wrong with this block? I also asked in slack and also asked at https://discourse.prefect.io/, but no one answered.. Just this code!
Copy code
import boto3
from prefect_aws import AwsCredentials

def check_conndition():
    ac_block = AwsCredentials.load('my_block')
    s3 = boto3.resource('s3', aws_access_key_id=ac_block.aws_access_key_id, aws_secret_access_key=ac_block.aws_secret_access_key)
    bucket = s3.Bucket('my_existing_bucket') 
    obj_list = []
    for obj_summary in bucket.objects.all(): #error occurring point

if __name__=='__main__':
radar 1
😥 1