Auto-generated
This page is generated by terraform-docs at build time from the infra/ repo. Do not edit manually.
Edge CDN
CloudFront distribution for static asset delivery and edge compute. Serves files
from the CDN S3 bucket with OAC, CORS headers, and client-side caching (24h).
Includes two Lambda@Edge functions: /region for geo-based consent region lookup
and /log for consent event ingestion via SQS. Logging uses CloudFront Standard
Logging v2 with w3c format and date-partitioned S3 delivery.
Requirements
Providers
Modules
No modules.
Resources
| Name |
Description |
Type |
Default |
Required |
| base_tags |
Base tags to apply to all resources |
map(string) |
{} |
no |
| certificate_arn |
ARN of the ACM certificate (must be in us-east-1) |
string |
n/a |
yes |
| hostname |
Public-facing domain for the CDN (e.g. cdn.stage.cookiehub.net) |
string |
n/a |
yes |
| name_prefix |
Prefix for resource names |
string |
n/a |
yes |
| s3_cdn_bucket_arn |
ARN of the CDN S3 bucket |
string |
n/a |
yes |
| s3_cdn_bucket_id |
ID of the CDN S3 bucket |
string |
n/a |
yes |
| s3_cdn_bucket_regional_domain_name |
Regional domain name of the CDN S3 bucket |
string |
n/a |
yes |
| s3_cdn_logs_bucket_arn |
ARN of the CDN logs S3 bucket |
string |
n/a |
yes |
| sqs_queue_arn |
ARN of the consent SQS queue (for IAM permissions) |
string |
n/a |
yes |
| sqs_queue_url |
URL of the consent SQS queue (injected into the log Lambda) |
string |
n/a |
yes |
| sqs_region |
AWS region of the SQS queue |
string |
n/a |
yes |
| zone_id |
Route53 hosted zone ID for the hostname |
string |
n/a |
yes |
Outputs