In order to use the Timestream ODBC Driver, ODBC Manager or iODBC Driver Manager must be installed.
If ODBC Manager does not have an Amazon Timestream ODBC Driver entry, you can add it following the steps below.
- Open ODBC Manager.
- Go to the Drivers tab.
- Click Add....
- Driver Name: The driver name used for ODBC connections (ex.
Amazon Timestream ODBC Driver
) - Driver File: The path to the driver file (default installed path:
/Library/ODBC/timestream-odbc/lib/libtimestream-odbc.dylib
) - Setup File: The path to the driver file (default installed path:
/Library/ODBC/timestream-odbc/lib/libtimestream-odbc.dylib
) - Set as a User or System driver
- Driver Name: The driver name used for ODBC connections (ex.
- Click OK to save the options.
If iODBC Administrator does not have an Amazon Timestream ODBC Driver entry, you can add it following the steps below.
To give the application permission to save the Driver & DSN configurations, run the following from Terminal.
sudo /Applications/iODBC/iODBC\ Administrator64.app/Contents/MacOS/iODBC\ Administrator64
- Go to the ODBC Drivers tab.
- Click Add a driver.
- Description of the Driver: The driver name used for ODBC connections (ex.
Amazon Timestream ODBC Driver
) - Driver File Name: The path to the driver file (default installed path:
/Library/ODBC/timestream-odbc/lib/libtimestream-odbc.dylib
) - Setup File Name: The path to the driver file (default installed path:
/Library/ODBC/timestream-odbc/lib/libtimestream-odbc.dylib
) - Set as a System driver
- Description of the Driver: The driver name used for ODBC connections (ex.
- Click OK to save the options.
If /Library/ODBC/odbcinst.ini does not have an Amazon Timestream ODBC Driver entry, you can add it following the steps below.
Use a text editor from Terminal to edit the odbcinst.ini file such as vi.
To create a System Driver Entry run:
sudo vi /Library/ODBC/odbcinst.ini
To add the driver entries:
- Add
Amazon Timestream ODBC Driver
in the[ODBC Drivers]
section. - Add the
[Amazon Timestream ODBC Driver]
section.
[ODBC Drivers]
Amazon Timestream ODBC Driver = Installed
[Amazon Timestream ODBC Driver]
Driver = /Library/ODBC/timestream-odbc/lib/libtimestream-odbc.dylib
Setup = /Library/ODBC/timestream-odbc/lib/libtimestream-odbc.dylib
You can use ODBC Manager or iODBC Administrator which is installed with the iODBC Driver Manager, or manually edit the odbcinst.ini
file.
- Go to the User DSN tab to create an entry that only you can use or to the System DSN tab to create an entry for all users.
- Select Add on the right side of the window.
- Choose the Driver you added above (e.g. Amazon Timestream ODBC Driver).
- Data Source Name (DSN): The name of the DSN used to store connection options (e.g.
AWS Timestream ODBC DSN
) - Description: Not required
- Add key-value pairs by using the 'Add' button. See the sample odbc.ini file below for entries for each authentication type.
- Click OK to save the DSN configuration.
To give the application permission to save the Driver & DSN configurations, run the following from Terminal.
sudo /Applications/iODBC/iODBC\ Administrator64.app/Contents/MacOS/iODBC\ Administrator64
- Go to the Users tab to create an entry that only you can use or to the System tab to create an entry for all users.
- Select Add on the right side of the window.
- Choose the Driver you added above (e.g. Amazon Timestream ODBC Driver).
- Data Source Name (DSN): The name of the DSN used to store connection options (e.g.
AWS Timestream ODBC DSN
) - Comment: Not required
- Add key-value pairs by using the '+' button. See the sample odbc.ini file below for entries for each authentication type.
- Click OK to save the DSN configuration.
- Click Test to test the configuration. A pop-up window that asks for the Username and Password will appear.
- Enter the Username and Password if needed
- Click OK
- You should get a message that the connection DSN was tested successfully. Click OK to close the window.
Note: iODBC may crash when entering the key-value pairs if the Value is in Edit mode when the OK button is pressed. This can be resolved by pressing return while in the Value field before pressing OK
Use a text editor from Terminal to edit the odbc.ini file such as vi. See Configuration Options for more details on the individual entries.
To create a System DSN Entry run:
sudo vi /Library/ODBC/odbc.ini
To create a User DSN Entry run:
vi ~/Library/ODBC/odbc.ini
[ODBC Data Sources]
timestream-iam-profile = Amazon Timestream ODBC Driver
timestream-aad-profile = Amazon Timestream ODBC Driver
timestream-okta-profile = Amazon Timestream ODBC Driver
timestream-aws-profile = Amazon Timestream ODBC Driver
[timestream-aws-profile]
Driver = Amazon Timestream ODBC Driver
Region = us-east-2
Auth = AWS_PROFILE
ProfileName = default
[timestream-aad-profile]
Driver = Amazon Timestream ODBC Driver
Region = us-east-1
Auth = AAD
IdpName = AzureAD
AADApplicationID =
AADClientSecret =
RoleARN =
AADTenant =
IdpARN =
IdpUserName =
IdpPassword =
[timestream-okta-profile]
Driver = Amazon Timestream ODBC Driver
Region = us-east-1
Auth = OKTA
IdpName = Okta
IdpHost =
OktaApplicationID =
RoleARN =
IdpARN =
IdpUserName =
IdpPassword =
[timestream-iam-profile]
Driver = Amazon Timestream ODBC Driver
Region = us-east-1
LogLevel = 0
Auth = IAM
AccessKeyId =
SecretKey =
SessionToken =
When you do not enter the username and password in iODBC Administrator pop-up, iODBC Administrator will still pass uid="";pwd="";
inside the connection string to the driver, thus overwriting the saved uid/pwd value in the DSN. We recommend not putting uid/pwd in the DSNs when you're working with iODBC Administrator.
Try the following:
- Create the folder
~/Library/ODBC
and/Library/ODBC
, then try again. - Create the
odbcinst.ini
file in the/Library/ODBC
folder. - Create the
odbc.ini
file in the~/Library/ODBC
(for user DSNs) and/Library/ODBC
folders (for system DSNs).