- Driver Connection Options
- Endpoint Configuration Options
- Credentials Provider Options
- AWS IAM Authentication Options
- SAML-Based Authentication Options for Okta
- SAML-Based Authentication Options for Azure Active Directory
- AWS SDK (Advanced) Options
- Logging Options
- Environment Variables At Connection
- Connecting to an Amazon Timestream Database
- Troubleshooting
- Window Dialog
DRIVER={Amazon Timestream ODBC Driver};<option>=<value>;
Option | Description | Default |
---|---|---|
Driver |
Required: the driver for this ODBC driver. | Amazon Timestream |
DSN |
Data Source Name used for configuring the connection. | NONE |
Auth |
Authentication mode. One of AWS_PROFILE , IAM , AAD , OKTA . AWS_PROFILE - use default credential chain IAM - AWS IAM credentials AAD - Identitiy provider: Azure AD OKTA - Identitiy provider: Okta |
AWS_PROFILE |
Option | Description | Default |
---|---|---|
EndpointOverride |
The endpoint override for the Timestream service. It overrides the region. It is an advanced option. Example value: query-cell2.timestream.us-east-1.amazonaws.com |
NONE |
Region |
The signing region for the Timestream service endpoint. | us-east-1 |
Option | Description | Default |
---|---|---|
ProfileName |
The profile name on the AWS config file. | NONE |
Option | Description | Default |
---|---|---|
UID or AccessKeyId |
The AWS user access key id. If both UID and AccessKeyId are provided in the connection string, the non-empty value with UID will be used. |
NONE |
PWD or SecretKey |
The AWS user secret access key. If both PWD and SecretKey are provided in the connection string, the non-empty value with PWD will be used. |
NONE |
SessionToken |
The temporary session token required to access a database with multi-factor authentication (MFA) enabled. Do not include trailing "=" in the input. | NONE |
Option | Description | Default |
---|---|---|
IdPHost |
The hostname of the specified IdP. | NONE |
UID or IdPUserName |
The user name for the specified IdP account. If both UID and IdPUserName are provided in the connection string, the non-empty value with UID will be used. |
NONE |
PWD or IdPPassword |
The password for the specified IdP account. If both PWD and IdPPassword are provided in the connection string, the non-empty value with PWD will be used. |
NONE |
OktaApplicationID |
The unique Okta-provided ID associated with the Timestream application. A place to find the AppId is in the entityID field provided in the application metadata. An example entityID="http://www.okta.com//<IdPAppID>" |
NONE |
RoleARN |
The Amazon Resource Name (ARN) of the role that the caller is assuming. | NONE |
IdPARN |
The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the IdP. | NONE |
For how to find the connection values, go to the SAML 2.0 Azure AD set up guide.
Option | Description | Default |
---|---|---|
UID or IdPUserName |
The user name for the specified IdP account. | NONE |
PWD or IdPPassword |
The password for the specified IdP account. | NONE |
AADApplicationID |
The unique id of the registered application on Azure AD. | NONE |
AADClientSecret |
The client secret associated with the registered application on Azure AD used to authorize fetching tokens. | NONE |
AADTenant |
The Azure AD Tenant ID. | NONE |
RoleARN |
The Amazon Resource Name (ARN) of the role that the caller is assuming. | NONE |
IdPARN |
The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the IdP. | NONE |
Option | Description | Default |
---|---|---|
RequestTimeout |
The time in milliseconds the AWS SDK will wait for a query request before timing out. Non-positive value disables request timeout. | 3000 |
ConnectionTimeout |
The time in milliseconds the AWS SDK will wait for data to be transferred over an open connection before timing out. Value must be non-negative. A value of 0 disables connection timeout. | 1000 |
MaxRetryCountClient |
The maximum number of retry attempts for retryable errors with 5XX error codes in the SDK. The value must be non-negative. | 0 |
MaxConnections |
The maximum number of allowed concurrently opened HTTP connections to the Timestream service. The value must be positive. | 25 |
Option | Description | Default |
---|---|---|
LogLevel |
Log level for driver logging. Possible values: {0, 1, 2, 3, 4} meaning {OFF, ERROR, WARNING, INFO, DEBUG} Warning: personal information can be logged by the driver when using the driver in DEBUG mode. |
1 (means ERROR) |
LogOutput |
Folder to store the log file | Windows: %USERPROFILE% , or if not available, %HOMEDRIVE%%HOMEPATH% macOS/Linux: $HOME , or if not available, use the field pw_dir from C++ function getpwuid(getuid()) return value. |
For setting up connection proxy properties, see connection proxy guide..
AWS SDK Log Level can be set by envrionment variable TS_AWS_LOG_LEVEL
to one of valid log level values: "FATAL", "ERROR", "WARN", "INFO", "DEBUG", "TRACE", and "OFF". If environment variable TS_AWS_LOG_LEVEL
is not set, default log level Warn
is used.
Note that AWS SDK log level is separate from the Timestream ODBC driver log level, and setting one does not affect the other.
Driver={Amazon Timestream ODBC Driver};Auth=IAM;AccessKeyId=myAccessKeyId;secretKey=mySecretKey;SessionToken=mySessionToken;Region=us-east-2;
- Authentication type (Auth) is AWS IAM credentials.
- AccessKeyId is
accessKeyId
and SecretKey issecretKey
. - Session token is
sessionToken
. - Region is
us-east-2
.
Driver={Amazon Timestream ODBC Driver};ProfileName=myProfileName;region=us-west-2;
- Authentication type (Auth) is AWS Profile by default if not specified.
- ProfileName is
myProfileName
. The driver will attempt to connect with credentials provided in~/.aws/credentials
(or, if provided, the file in the environment variableAWS_SHARED_CREDENTIALS_FILE
).
driver={Amazon Timestream ODBC Driver};auth=okta;region=us-west-2;idPHost=myHostAtOkta;idPUsername=myUserName;idPPassword=myPassword;OktaApplicationID=myOktaAppId;roleARN=myRoleArn;idPARN=myIdpArn;
- Authentication type (Auth) is OKTA.
- IdPHost is
myHostAtOkta
. - IdPUserName is
myUserName
. - IdPPassword is
myPassword
. - OktaApplicationID is
myOktaAppId
. - RoleARN is
myRoleArn
. - IdPARN is
myIdpARN
.
driver={Amazon Timestream ODBC Driver};auth=aad;region=us-west-2;idPUsername=myUserName;idPPassword=myPassword;aadApplicationID=myAadAppId;aadClientSecret=myAadClientSecret;aadTenant=myAadTenant;roleARN=myRoleArn;idPARN=myIdpArn;
- Authentication type (Auth) is AAD.
- IdPUserName is
myUserName
. - IdPPassword is
myPassword
. - AADApplicationID is
myAadAppId
. - AADClientSecret is
myAadClientSecret
. - AADTenant is
myAadTenant
. - RoleARN is
myRoleArn
. - IdPARN is
myIdpARN
.
Driver={Amazon Timestream ODBC Driver};Auth=IAM;AccessKeyId=myAccessKeyId;secretKey=mySecretKey;EndpointOverride=ingest.timestream.us-west-2.amazonaws.com;Region=us-east-2;LogLevel=2;
- Authentication type (Auth) is AWS IAM credentials.
- Endpoint is
ingest.timestream.us-west-2.amazonaws.com
. - Region is
us-east-2
. - Log lever is set to 2 which is
Warning
.
Note: When the username / password are already specified in the DSN, there is no need to specify them again when the ODBC driver manager asks for them.
Error code | Message | Explanation |
---|---|---|
01S02 | Re-writing < connection string option > (have you specified it several times?) | When user passes < connection string option > more than once in the connection string, this error will happen. Please do not pass in the same connection option more than once in the connection string. When making a connection with a DSN and a connection string, if a connection option is already specified in the DSN, it is not recommended to specify it again in the connection string. |
The following are the screenshots of the Windows ODBC driver UI.