Skip to main content

MD_LIST_BUCKETS_FOR_SECRET

MD_LIST_BUCKETS_FOR_SECRET() lists the S3 buckets visible to the named secret.

note

This function takes a secret name, not a bucket name. It supports S3 secrets only.

Syntax

FROM md_list_buckets_for_secret('<secret_name>');

Output

Column NameData TypeValue
nameVARCHARBucket name
creation_dateDATEBucket creation date
regionVARCHARBucket region
arnVARCHARBucket ARN, when available

Example usage

FROM md_list_buckets_for_secret('__default_s3');