We are trying to connect to Athena where users can dynamically change their connection parameters based on their needs.
We can connect when we specify all the required parameters in the odbc.ini file (see 1 below). The UID and PWD parameters are being passed via the libname statement inside EG (See 2 below).
-------- 1 ------
ODBC.INI
[Simba_Athena]
Driver=/opt/simba/athenaodbc/lib/64/libathenaodbc_sb64.so
AwsRegion=us-east-1
S3OutputLocation=s3://shared-bucket1-us-east-1/user/
AuthenticationType=IAM Credentials
#UID=xxxxxxxx
#PWD=*xxxxxxx
SessionToken=xxxxxxx
------------------------------------------------
-------- 2 ------
libname atena3 odbc dsn=Simba_Athena schema=xyz001_tst UID=xxxxxxx
PWD=xxxxx readbuff= 10000;
------------------------------------------------
We need to make this more dynamic and have the S3OutputLocation and SessionToken variables available in the libname statement as we can't change the odbc.ini file every day.
We are using:
1) ODBC Driver Manager: unixODBC2.3.6
2) SimbaAthenaODBC-64bit.x86_64 1.0.5-1
We read this post; however, we do not use a proxy server.
We read a couple posts about successful connections but need more detail.
@JBailey
Any help is appreciated (you responded to the post noted above about successful connection)!