(aws_cloudfront): (typescript requirement for distributions outside of us-east-1 with certificate not documented) #32066
Labels
@aws-cdk/aws-cloudfront
Related to Amazon CloudFront
documentation
This is a problem with documentation.
p2
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
Describe the issue
I am writing up my app in Typescript. I don't know if any other language has the same behavior or the same kind of documentation situation... I did not check.
I have created a certificate in us-east-1 as required, but a distribution in another region. I reference this certificate by ARN in the distribution stack. When I deploy that distribution, I don't see the alias or the certificate I requested, nor an error. Through trial and error, it seems like I needed to declare a dependency between the certificate stack and distribution stack in order to get this to work as intended. I'm able to refer to all kinds of resources by ARN in other stacks without declaring a dependency, so this is unexpected. If this is indeed the intended behavior, please document that a dependency between the stacks is required. If there is some kind of temporary state to the code and the dependency won't always be required, it would also help to document that.
Modifying the example in the overview, it would look like...
Links
https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront-readme.html
The text was updated successfully, but these errors were encountered: