Skip to content

Commit 1be125b

Browse files
committed
Use existing Cognito domain name
1 parent 8788e0a commit 1be125b

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

backend/src/iac/backend-stack.ts

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -87,15 +87,10 @@ export class BackendStack extends cdk.Stack {
8787
);
8888

8989
// Create a Cognito domain if it doesn't exist
90-
const userPoolDomain = new cognito.UserPoolDomain(
90+
const userPoolDomain = cognito.UserPoolDomain.fromDomainName(
9191
this,
92-
`${appName}UserPoolDomain-${props.environment}`,
93-
{
94-
userPool,
95-
cognitoDomain: {
96-
domainPrefix: `modus-ai-${props.environment}`,
97-
},
98-
},
92+
`${appName}ExistingDomain-${props.environment}`,
93+
'us-east-1pszlvsmwc' // The domain prefix without the .auth.region.amazoncognito.com part
9994
);
10095

10196
// Create ALB

0 commit comments

Comments
 (0)