Usage
module "s3_static_site" {
source = "github.com/fencepencil/fencepencil-aws-modules//s3-static-site"
domain_name = "<domain_name>"
bucket_name = "<bucket_name>"
route53_zone_id = "<route53_zone_id>"
tags = var.tags
}Inputs (6)
| Name | Type | Description | Default | Required |
|---|---|---|---|---|
domain_name | string | Primary domain name for the site | — | yes |
subject_alternative_names | list(string) | Additional domains for the certificate | [] | no |
bucket_name | string | S3 bucket name (globally unique) | — | yes |
route53_zone_id | string | Route53 hosted zone ID | — | yes |
price_class | string | CloudFront price class | PriceClass_100 | no |
tags | map(string) | Tags to apply to all resources | {} | no |
Outputs (4)
| Name | Description |
|---|---|
bucket_name | Name of the S3 bucket |
cloudfront_distribution_id | CloudFront distribution ID |
certificate_arn | ARN of the ACM certificate |
website_url | The website URL |