Example: Creating an AUTHORIZATION OBJECT for Use with NOS - Teradata Vantage - Analytics Database

SQL Data Definition Language Syntax and Examples

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-22
dita:mapPath
jco1628111346878.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
mdr1472255012272
lifecycle
latest
Product Category
Teradata Vantageā„¢

Run the following command to create an authorization object to access external object store:

CREATE AUTHORIZATION MyAuthObj
USER 'user_name'
PASSWORD 'password';

Where:

  • user_name is the ACCESS_KEY or Storage Account Name to your external object store.
  • password is the secret access key, Key, SAS Token, or Secure Email and Secret Access Key depending on your external object store.

If you are accessing a public bucket, put empty strings for USER and PASSWORD, enclosed in straight quotes. For example:

CREATE AUTHORIZATION MyAuthObj
USER ''
PASSWORD '';

Associate the AUTHORIZATION OBJECT with a Foreign Table

CREATE FOREIGN TABLE riverflow_csv
, EXTERNAL SECURITY  MyAuthObj
USING ( LOCATION('/s3/td-usgs-public.s3.amazonaws.com/CSVDATA/') );