CLOUD_STORAGE (S3) in the information_schema.locations view. For a comprehensive guide to LOCATION objects, see LOCATION objects. For more on location objects syntax in general, see CREATE LOCATION.
Topics:
Syntax
AMAZON_S3 is supported as an alias for CLOUD_STORAGE.
Parameters
Common Parameters
Amazon S3 Parameters
AWS Authentication Parameters
Examples
- Authenticate using an access key
- Authenticate using a role
- Create a location with an AWS session token
Authenticate using an access key
The following code examples use keys to authenticate to AWS. BothCLOUD_STORAGE and AMAZON_S3 are shown:
Authenticate using a role
The following code examples use a role to authenticate to AWS. BothCLOUD_STORAGE and AMAZON_S3 are shown:
Create a location with an AWS session token
The following code examples create a location object namedmy_location, for an Amazon S3 data source with the specified URL and AWS session token. Both CLOUD_STORAGE and AMAZON_S3 are shown: