Frontend Stack

API Reference

class hello_world.hello_world_frontend_stack.HelloWorldFrontendStack(*args, **kwargs)[source]

Bases: Stack

CDK stack for the Hello World frontend.

Provisions a private S3 bucket for static assets and a CloudFront distribution with OAC, HTTPS-only enforcement, and security response headers. WAF protection is provided by a WebACL ARN passed in from HelloWorldWafStack, which is always deployed in us-east-1.

This stack can be deployed to any region. When the target region differs from us-east-1, CDK bridges the WAF ARN cross-region automatically via SSM Parameter Store (enabled by cross_region_references=True in app.py).

Parameters:

args (Any)

Return type:

M