Skip to content

This is a module that creates a static application with a OAI Cloudfront.

License

Notifications You must be signed in to change notification settings

RaphaelMacedonio/terraform-aws-static-app

 
 

Repository files navigation

terraform-aws-static-app

Lint Status LICENSE

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

Requirements

Name Version
terraform >= 0.12.0

Providers

Name Version
aws n/a

Inputs

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

Outputs

Name Description
cf_domain_name CloudFront Domain Name

Author

Module managed by DNX Solutions.

License

Apache 2 Licensed. See LICENSE for full details.

About

This is a module that creates a static application with a OAI Cloudfront.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HCL 100.0%