Skip to content

Commit b3dccf6

Browse files
committed
chore: revert add env to aws access token
1 parent 8078de7 commit b3dccf6

File tree

2 files changed

+1
-18
lines changed

2 files changed

+1
-18
lines changed

packages/cubejs-athena-driver/src/AthenaDriver.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff 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 ||

packages/cubejs-backend-shared/src/env.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)