How-to guideApplies to: Unified engine deployments
Create a named credential from secret references, then bind that credential to
a Parquet view.
Have keys and a data prefix ready
Use an existing S3 bucket containing Parquet files for the TPC-DS SF1 item
table. The examples use s3://recipe-data/tpcds-sf1/item/ in us-east-2.
Replace the bucket, path, and Region with your real values. The identity needs
s3:ListBucket on the bucket and s3:GetObject on that prefix. Add kms:Decrypt
when its objects use a customer-managed KMS key. Keep the view and query in the
same SQL session.
Obtain the key pair from AWS outside SQL. This recipe does not create IAM users
or access keys. For temporary credentials, also obtain their session token and
keep all three values from the same session. Local secrets need the
encrypted secret store.
Save the key references
For temporary keys, add their session token before running the data query:
Omit this optional block for long-lived keys. A saved session token is not
automatically renewed. Replace all session values together when they expire.
Read using the named credential
Expect up to five item rows. The credential selects the keys; the view’s Region
selects the S3 endpoint. Saved AWS credentials do not accept a Region option.
When finished:
Last modified on November 4, 2026