Skip to content

Commit 5352828

Browse files
committed
Get env variables
1 parent c087fbf commit 5352828

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

backend/src/iac/backend-stack.ts

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,9 @@ export class BackendStack extends cdk.Stack {
6969
});
7070

7171
// Look up existing Cognito User Pool
72-
const userPoolId = process.env.AWS_COGNITO_CLIENT_ID || cognito.UserPool.fromUserPoolId(
73-
this,
74-
`${appName}UserPool`,
75-
'us-east-1_PszlvSmWc',
76-
).userPoolId;
72+
const userPoolId =
73+
process.env.AWS_COGNITO_CLIENT_ID ||
74+
cognito.UserPool.fromUserPoolId(this, `${appName}UserPool`, 'us-east-1_PszlvSmWc').userPoolId;
7775

7876
// Create a Cognito domain if it doesn't exist
7977
const userPoolDomain = cognito.UserPoolDomain.fromDomainName(

0 commit comments

Comments
 (0)