Closed ryanmcfall closed 1 month ago
Here's the generated Cloud Formation template in case that is helpful.
@ryanmcfall From a first glimpse I can't see anything wrong with the generated template. The HttpsListener
is created and referenced correctly. Hence, it should work.
Maybe, @thombergs would like to chime in?
This definitely doesn't work.
I took the generated template.json file from cdk.out, removed the references to httpsListener8FA62E8D where it appeared, uploaded the template to the AWS CloudFormation web interface on aws.amazon.com, and created a new stack using that template. This worked perfectly.
So there is something about the generated template that AWS calls an error.
I'm using modified versions of the code used in the Stratospheric book to deploy my application. I have two stacks:
FoundationStack
which creates an ECR repositoryApplicationStack
which creates a Cognito user pool, a VPC using theNetwork
construct, a minimally modified version of theDatabase
construct (to change the instance class for the Postgres database), and theService
construct.My application deploys correctly if I don't set up an SSL certificate and provide it to the
Network
construct via theNetworkInputParameters
instance passed to theNetwork
construct. When I do, I get an error synthesizing:I have confirmed the value of the ARN for the certificate is valid. The relevant portion of the app code that creates the
ApplicationStack
looks like this:Here's
ApplicationStack.java
, with the most relevant methods beingcreateVPC
andcreateService
: