Hello,
The AWS Secret block seems to be the perfect block that I need, but I am not sure how to read the secrets in code. I have included it as instructed, and tried something like the following:
from prefect_aws.secrets_manager import AwsSecret
my_secret = AwsSecret.load('my-secret')
my_pwd = my_secret.read_secret()
I get an error that says KeyError: ‘SecretBinary’ from prefect_aws\secrets_manager.py. I’m not sure what code I should use to extract the secrets from the AWS Secret object. Thanks for any help.