rehanvdm / serverless-website-analytics

A CDK construct that consists of a serverless backend, frontend and client side code to track website analytics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot create multiple constructs in one stack

rehanvdm opened this issue · comments

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]