Create Authorization Object | Data Transfer between Vantage and Cloud Storage - Create Authorization Object - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
Language
English (United States)
Last Update
2024-04-03
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

An authorization object is used to control who can access external object storage. Before creating an authorization object, user must have permission from external object storage to access the data. The credentials are configured on the external object storage that you want to access.

For example, to access an Amazon S3 bucket, an Access Key and ID or an AWS Identity and Access Management (IAM) user credential is required, depending on your external object storage.

Once your external object storage allows user to access it, set up an authorization object with the credentials for your external object storage.

Public buckets or containers in external object storage do not require credentials for access. To access a public bucket or container, put an empty string for USER and PASSWORD.
The following example demonstrates creation of authorization object within teradataml environment.
from teradataml import create_context
td_context = create_context("Your-host", "Your-user", "Your-password")
auth_obj_cmd = """CREATE AUTHORIZATION authorization_object
USER 'YOUR-ACCESS-KEY-ID'
PASSWORD 'YOUR-SECRET-ACCESS-KEY';"""
td_context.execute(auth_obj_cmd)