<@ULVA73B9P> are we only able to access singular v...
# ask-marvin
t
@Marvin are we only able to access singular values from blocks when setting env vars? if I have an aws credentials block would I be able to pull the region/access key/secret access key from. am I able to pull multiple values from one block or do I need secrets blocks for each? trying to do something like this in my prefect.yaml env section
Copy code
AWS_DEFAULT_REGION: "{{ prefect_aws.awscredentials.prefect-aws-credentials.region_name }}"
m
Based on the information from the Prefect documentation, blocks are primitives that store configuration and can interface with external systems, such as AWS. They allow secure storage and retrieval of credentials like AWS access keys, secret access keys, and region information. To use the AWS credentials configured in a block within your
prefect.yaml
for environment variables, you should be able to reference multiple values from a single block. However, the exact syntax for querying these values directly within the
prefect.yaml
file is not specified in the excerpts. For more clarity, you can review the more detailed usage of blocks and how they can be used to store and retrieve multiple data points, including access keys and region info. Check out these resources: - Global Coordination Plane Blog Post - Prefect Blocks Documentation If you need further assistance or more accurate guidance on the specific syntax for your
prefect.yaml
, I may suggest seeking information directly from Prefect's support channels or communities that could provide examples or more direct insights based on the latest Prefect capabilities.