Possible to override a static website Web ACL rule? #260
-
I need to set one of the rules in Here's how I'm using the construct: self.website = static_website.StaticWebsite(
self,
"StaticWebsite",
website_content_path=str(self.dist_path.resolve()),
distribution_props=cloudfront.DistributionProps(
domain_names=[self.domain_name],
certificate=self.certificate,
),
) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
And/or, more generally, is it possible to expose the generated Web ACL (e.g. from |
Beta Was this translation helpful? Give feedback.
-
Hi mate. Unfortunately the WebACL is not a CDK construct and is actually a custom resource under the covers. The reason for this is that there is a limitation with the CDK currently where the ACL can only be created in the same region as the stack being deployed. Given we want to host on Cloudfront, the WebACL must be deployed to |
Beta Was this translation helpful? Give feedback.
Hi mate.
Unfortunately the WebACL is not a CDK construct and is actually a custom resource under the covers. The reason for this is that there is a limitation with the CDK currently where the ACL can only be created in the same region as the stack being deployed. Given we want to host on Cloudfront, the WebACL must be deployed to
us-east-1
, hence why we need to use a custom resource.