We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8788e0a commit 1be125bCopy full SHA for 1be125b
backend/src/iac/backend-stack.ts
@@ -87,15 +87,10 @@ export class BackendStack extends cdk.Stack {
87
);
88
89
// Create a Cognito domain if it doesn't exist
90
- const userPoolDomain = new cognito.UserPoolDomain(
+ const userPoolDomain = cognito.UserPoolDomain.fromDomainName(
91
this,
92
- `${appName}UserPoolDomain-${props.environment}`,
93
- {
94
- userPool,
95
- cognitoDomain: {
96
- domainPrefix: `modus-ai-${props.environment}`,
97
- },
98
+ `${appName}ExistingDomain-${props.environment}`,
+ 'us-east-1pszlvsmwc' // The domain prefix without the .auth.region.amazoncognito.com part
99
100
101
// Create ALB
0 commit comments