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

Teradata® Package for Python User Guide

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Teradata Package for Python
Release Number
20.00
Published
March 2024
Language
English (United States)
Last Update
2024-04-09
dita:mapPath
nvi1706202040305.ditamap
dita:ditavalPath
plt1683835213376.ditaval
dita:id
rkb1531260709148
Product Category
Teradata Vantage

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)