16.10 - The "config" and "credentials" Files - Access Module

Teradata Tools and Utilities Access Module Reference

prodname
Access Module
vrm_release
16.10
created_date
July 2017
category
Programming Reference
featnum
B035-2425-077K

The config file contains the region name where the Amazon S3 bucket is located. The config file supports comments.

The following is an example of the contents of the config file:

config: (sample contents of ~/.aws/config)
[default]
region = us-west-2
[export_job_7]
region = us-east
[load_job_5]
region = us-west-2
# I support comments

The credentials file contains the user credentials such as "Access Key Id" and "Secret Access Key".

The following is an example of the contents of the credentials file:

credentials: (sample contents of ~/.aws/credentials)
[default]
aws_access_key_id = AKIA************T6XA
aws_secret_access_key = Mpm1********************************CNT4
[export_job_7]
aws_access_key_id = AKIA************WLCX
aws_secret_access_key = Mpm1********************************QQL7
[load_job_5]
aws_access_key_id = AKIA************WWNB
aws_secret_access_key = Mpm1********************************CNT4

These files can have sections called profiles, identified with an arbitrary name in square brackets which can correspond to the descriptions of the load or export job. Any particular profile from the config and the credentials files can be selected for use through the initialization string parameter named S3Profile.

You need to create a .aws directory under your home directory and keep the config file and the credentials file under the .aws directory. The .aws directory is the default location to keep the config file and the credentials file.

You can also store the config file and the credentials file in any directory of your choice. However, you need to specify the directory path where the config file and the credentials file are stored, through the initialization string parameter named S3ConfigDir.