diff --git a/src/handlers/cognito-quicksight-access/handler.spec.ts b/src/handlers/cognito-quicksight-access/handler.spec.ts index 91e49e7f7..7b84d5e68 100644 --- a/src/handlers/cognito-quicksight-access/handler.spec.ts +++ b/src/handlers/cognito-quicksight-access/handler.spec.ts @@ -184,7 +184,7 @@ test('session duration', async () => { await expectSessionDuration('dev', 15); await expectSessionDuration('test', 15); await expectSessionDuration('feature', 15); - await expectSessionDuration('production', 600); + await expectSessionDuration('production', 55); expect(mockQuicksightClient.calls()).toHaveLength(4); }); diff --git a/src/handlers/cognito-quicksight-access/handler.ts b/src/handlers/cognito-quicksight-access/handler.ts index 4213fd62c..4099dd888 100644 --- a/src/handlers/cognito-quicksight-access/handler.ts +++ b/src/handlers/cognito-quicksight-access/handler.ts @@ -112,7 +112,7 @@ const getEmbedUrl = async (accountId: string, username: string): Promise const request = new GenerateEmbedUrlForRegisteredUserCommand({ AwsAccountId: accountId, UserArn: userArn, - SessionLifetimeInMinutes: getAWSEnvironment() === 'production' ? 600 : 15, + SessionLifetimeInMinutes: getAWSEnvironment() === 'production' ? 55 : 15, ExperienceConfiguration: { QuickSightConsole: { InitialPath: '/start/dashboards',