17.10 - Example: Creating and Using an Authorization for a Foreign Table - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Data Definition Language Syntax and Examples

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1144-171K
Language
English (United States)

Create Authorization

CREATE AUTHORIZATION MyAuthObj
USER 'YOUR-ACCESS-KEY-ID'
PASSWORD 'YOUR-SECRET-ACCESS-KEY';

Create Foreign Table

CREATE FOREIGN TABLE sensordata2,
EXTERNAL SECURITY MyAuthObj
USING (
  LOCATION ('/s3/YOUR-BUCKET.s3.amazonaws.com/')
);