File tree Expand file tree Collapse file tree 2 files changed +1
-18
lines changed
cubejs-backend-shared/src Expand file tree Collapse file tree 2 files changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,6 @@ interface AthenaDriverOptions extends AthenaClientConfig {
3030 readOnly ?: boolean
3131 accessKeyId ?: string
3232 secretAccessKey ?: string
33- sessionToken ?: string
3433 workGroup ?: string
3534 catalog ?: string
3635 schema ?: string
@@ -105,10 +104,6 @@ export class AthenaDriver extends BaseDriver implements DriverInterface {
105104 config . secretAccessKey ||
106105 getEnv ( 'athenaAwsSecret' , { dataSource } ) ;
107106
108- const sessionToken =
109- config . sessionToken ||
110- getEnv ( 'athenaAwsSessionToken' , { dataSource } ) ;
111-
112107 const { schema, ...restConfig } = config ;
113108
114109 this . schema = schema ||
@@ -118,7 +113,7 @@ export class AthenaDriver extends BaseDriver implements DriverInterface {
118113 this . config = {
119114 ...restConfig ,
120115 credentials : accessKeyId && secretAccessKey
121- ? { accessKeyId, secretAccessKey, sessionToken }
116+ ? { accessKeyId, secretAccessKey }
122117 : undefined ,
123118 region :
124119 config . region ||
Original file line number Diff line number Diff line change @@ -848,18 +848,6 @@ const variables: Record<string, (...args: any) => any> = {
848848 process . env [ keyByDataSource ( 'CUBEJS_AWS_SECRET' , dataSource ) ]
849849 ) ,
850850
851- /**
852- * Athena AWS session token.
853- */
854- athenaAwsSessionToken : ( {
855- dataSource
856- } : {
857- dataSource : string ,
858- } ) => (
859- // TODO (buntarb): this name is a common. Deprecate and replace?
860- process . env [ keyByDataSource ( 'CUBEJS_AWS_SESSION_TOKEN' , dataSource ) ]
861- ) ,
862-
863851 /**
864852 * Athena AWS region.
865853 */
You can’t perform that action at this time.
0 commit comments