Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cognito): cannot add multiple route53 targets to the same user pool domain #8622

Merged
merged 2 commits into from
Jun 25, 2020

Conversation

nija-at
Copy link
Contributor

@nija-at nija-at commented Jun 18, 2020

The root cause here is that calling cloudFrontDomainName getter on
UserPoolDomain results in creating a custom resource with a fixed node
id. This resulted in the error - "There is already a Construct with name
'CloudFrontDomainName' in UserPoolDomain".

Changed the logic around so that the CustomResource construct is only
created on first call to the getter, and is reused on subsequent calls.

fixes #8603


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…ol domain

The root cause here is that calling `cloudFrontDomainName` getter on
`UserPoolDomain` results in creating a custom resource with a fixed node
id. This resulted in the error - "There is already a Construct with name
'CloudFrontDomainName' in UserPoolDomain".

Changed the logic around so that the `CustomResource` construct is only
created on first call to the getter, and is reused on subsequent calls.

fixes #8603
@nija-at nija-at requested a review from a team June 18, 2020 12:12
@nija-at nija-at self-assigned this Jun 18, 2020
@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Jun 18, 2020
@github-actions github-actions bot added @aws-cdk/aws-cognito Related to Amazon Cognito @aws-cdk/aws-route53 Related to Amazon Route 53 labels Jun 18, 2020
@github-actions github-actions bot added @aws-cdk/aws-route53-targets @aws-cdk/aws-sam Related to AWS Serverless Application Model labels Jun 18, 2020
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: dd8e97d
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@SomayaB SomayaB removed @aws-cdk/aws-route53 Related to Amazon Route 53 @aws-cdk/aws-route53-targets @aws-cdk/aws-sam Related to AWS Serverless Application Model labels Jun 18, 2020
@mergify
Copy link
Contributor

mergify bot commented Jun 25, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify
Copy link
Contributor

mergify bot commented Jun 25, 2020

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 32b54a5 into master Jun 25, 2020
@mergify mergify bot deleted the nija-at/userpooldomain-cfdomainname branch June 25, 2020 15:30
@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 09a45d3
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-cognito Related to Amazon Cognito contribution/core This is a PR that came from AWS.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There is already a Construct with name 'CloudFrontDomainName' in UserPoolDomain
6 participants