Skip to content

Commit

Permalink
Re-deploy the Cognito domain with a new name
Browse files Browse the repository at this point in the history
gh-274

This is to complete the 2-step deploy described here:

aws/aws-cdk#10062 (comment)

I'm renaming the Cognito User Pool Domain with a fixed-size string with
acceptable letters for a Domain prefix, and that varies based on the
repo namespace, repo name, branch, and account.
  • Loading branch information
douglasnaphas committed Feb 9, 2021
1 parent 93924a1 commit f9465f4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/madliberation-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,11 +123,11 @@ export class MadliberationStack extends cdk.Stack {
.slice(0, 20);
const domainPrefix = stacknameHash + this.account;

// userPool.addDomain("UserPoolDomain", {
// cognitoDomain: {
// domainPrefix: domainPrefix,
// },
// });
userPool.addDomain("UserPoolDomain", {
cognitoDomain: {
domainPrefix: domainPrefix,
},
});

new cdk.CfnOutput(this, "DistributionDomainName", {
value: distro.distributionDomainName,
Expand Down

0 comments on commit f9465f4

Please sign in to comment.