Terraform module to host a static site generated by Publii
Name | Version |
---|---|
terraform | >= 1.1.7 |
aws | ~> 4.4 |
Name | Version |
---|---|
aws | 4.4.0 |
aws.useast1 | 4.4.0 |
random | 3.1.0 |
template | 2.2.0 |
Name | Description | Type | Default | Required |
---|---|---|---|---|
cloudfront_enable_apex_to_www_redirect | Enable CloudFront apex to www redirect | bool |
true |
no |
cloudfront_enable_ipv6 | Enable IPv6 on CloudFront | bool |
true |
no |
cloudfront_enable_waf | Enable CloudFront WAF | bool |
true |
no |
cloudfront_ordered_cache_behaviors | List of ordered_cache_behavior objects. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_distribution#cache-behavior-arguments | any |
[] |
no |
cloudfront_tls_certificate_arn | CloudFront TLS certificate ARN (must be created in us-east-1 region) | string |
"" |
no |
enable_publii_pretty_urls | If you hae enabled 'Pretty URLs' in Publii, set this to true | bool |
false |
no |
route53_hosted_zone_options | If you have a Route53 zone, the required DNS records can be created automatically. | object({ |
{ |
no |
s3_bucket_acl | S3 bucket ACL | string |
"private" |
no |
site_url | The desired site URL | string |
n/a | yes |
Name | Description |
---|---|
aws_acm_certificate_cloudfront_frontend | CloudFront frontend's ACM TLS certificate attributes |
aws_cloudfront_origin_access_identity_frontend | CloudFront frontend's associated origin access identity |
iam_user_publii_s3_frontend | IAM User attributes for Publii S3 bucket |
project_name | Project name. Generated from the site_url and project_random_id |
project_random_id | The random ID generated to ensure unique resource names |
s3_bucket_frontend | S3 bucket frontend attributes |