<@ULVA73B9P> is there a programatic and generic wa...
# ask-marvin
d
@Marvin is there a programatic and generic way to create blocks. For example, in python code how would I create am AWS Credentials block
j
Not sure why Marvin didn't answer, but
Copy code
from prefect_aws import AwsCredentials
AwsCredentials(
    aws_access_key_id="PLACEHOLDER",
    aws_secret_access_key="PLACEHOLDER",
    aws_session_token=None,  # replace this with token if necessary
    region_name="us-east-2"
).save("BLOCK-NAME-PLACEHOLDER")
https://prefecthq.github.io/prefect-aws/