Skip to content

Commit f005c5b

Browse files
trompaAlberto Lago Alvarado
andauthored
fix(athena-driver): Allow to pass custom credentials, fix #7407 (#7429)
Co-authored-by: Alberto Lago Alvarado <[email protected]>
1 parent 04e6496 commit f005c5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,16 +126,16 @@ export class AthenaDriver extends BaseDriver implements DriverInterface {
126126
getEnv('athenaAwsSecret', { dataSource });
127127

128128
const { schema, ...restConfig } = config;
129-
129+
130130
this.schema = schema ||
131131
getEnv('dbName', { dataSource }) ||
132132
getEnv('dbSchema', { dataSource });
133133

134134
this.config = {
135-
...restConfig,
136135
credentials: accessKeyId && secretAccessKey
137136
? { accessKeyId, secretAccessKey }
138137
: undefined,
138+
...restConfig,
139139
region:
140140
config.region ||
141141
getEnv('athenaAwsRegion', { dataSource }),

0 commit comments

Comments
 (0)