All Modules
AWSCompute
CloudFront + S3
S3 static site with CloudFront CDN, Origin Access Control, and optional WAF
Usage
module "cloudfront_s3" {
source = "github.com/fencepencil/fencepencil-aws-modules//cloudfront-s3"
name = "<name>"
tags = var.tags
}Inputs (7)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
name | string | Name prefix for all resources | — | yes |
domain_names | list(string) | Domain names (CNAMEs) for CloudFront | [] | no |
acm_certificate_arn | string | ACM certificate ARN for HTTPS | null | no |
index_document | string | Index document for the site | index.html | no |
error_document | string | 404 error document | 404.html | no |
web_acl_arn | string | WAF Web ACL ARN to associate | null | no |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (4)
| Name | Description |
|---|---|
distribution_id | CloudFront distribution ID |
distribution_domain_name | CloudFront domain name |
bucket_name | S3 bucket name |
bucket_arn | S3 bucket ARN |