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

Cannot create multiple constructs in one stack #26

Closed
rehanvdm opened this issue Jul 6, 2023 · 0 comments · Fixed by #31
Closed

Cannot create multiple constructs in one stack #26

rehanvdm opened this issue Jul 6, 2023 · 0 comments · Fixed by #31
Assignees
Labels
bug Something isn't working

Comments

@rehanvdm
Copy link
Owner

rehanvdm commented Jul 6, 2023

The domain property creates a Route53 record for CloudFront with a fixed construct id, so if it already exists then you can only ever deploy 1 serverless-website-analytics component per stack.

This is on version 0.x.x.

You get the following error when using CDK deploy:

Error: There is already a Construct with name 'cloudfront-record' in App [xxx]
@rehanvdm rehanvdm self-assigned this Jul 6, 2023
@rehanvdm rehanvdm added the bug Something isn't working label Jul 6, 2023
rehanvdm pushed a commit that referenced this issue Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant