This is a module that creates a static application with a OAI Cloudfront.
The following resources will be created:
- A bucket to store logs from app
- An Amazon CloudFront origin access identity
- Enable an optional web acl (WAF) to attach to CloudFront
- A hostname in the hosted zone passed
- AWS Identity and Access Management (IAM) policy for the S3 Bucket
Name | Version |
---|---|
terraform | >= 0.12.0 |
Name | Version |
---|---|
aws | n/a |
Name | Description | Type | Default | Required |
---|---|---|---|---|
certificate_arn | n/a | any |
n/a | yes |
cloudfront_logging_bucket | Bucket to store logs from app | string |
"" |
no |
cloudfront_logging_prefix | Logging prefix | string |
"" |
no |
cloudfront_web_acl_id | Optional web acl (WAF) to attach to CloudFront | string |
"" |
no |
default_root_object | Set the default file for the application | string |
"index.html" |
no |
hosted_zone | n/a | any |
n/a | yes |
hostname_create | Create hostname in the hosted zone passed? | bool |
true |
no |
hostnames | n/a | list(string) |
n/a | yes |
name | n/a | any |
n/a | yes |
s3_bucket_id | n/a | any |
n/a | yes |
Name | Description |
---|---|
cf_domain_name | CloudFront Domain Name |
Module managed by DNX Solutions.
Apache 2 Licensed. See LICENSE for full details.