Matt Coulter
                                            Matt Coulter
                                        
                                    Hey, I just released 2.0.0-alpha.0 with CDK 2 support. Everything seems to work as expected so will update from alpha to a full release after some user testing
Let me just make sure I fully understand the ask. So you already have a site deployed to say "cdk.com" but you want to add a new site on "subdomain.cdk.com"...
You're 100% correct in that you are the first person to ask for sub domains so it isn't built into the construct yet. I'll take a look into it over...
You can define region at the stack level e.g. https://github.com/cdk-patterns/serverless/blob/f183222d260cb7e64d37f462acee69ea529351c6/the-rds-proxy/typescript/bin/the-rds-proxy.ts#L8
Feature merged and released in 1.86.0-dev.1 which has been pushed to NPM, Pypi, Maven and Nuget
I'll take a look today, what version of CDK are you using? I know 1.81.0 broke the s3 upload construct so 1.82 was just released which hopefully fixes some issues
Also thinking out loud wondering if it is cloudfront configuration related because https://github.com/cdk-patterns/serverless/blob/master/the-media-live-stream/typescript/lib/the-media-live-stream-website.ts#L29 uses the basic deployment with a static file. Either way I will dig in today
I just deployed one of my domains with the above configuration and a static index.html file, it worked as expected for me.
Looking at your code again actually my cdk stack is inside cdk/lib/cdk-stack.ts whereas yours is just under aws so you mightn't need the ../ in your reference to the static...
Hey, something I want to look into as part of this and as part of cdkpatterns.com is to integrate this construct with the new dev preview of cdk pipelines (https://docs.aws.amazon.com/cdk/api/latest/docs/pipelines-readme.html)....