Git Product home page Git Product logo

terraform-aws-cloudfront-wordpress's Introduction

CLoudFront WordPress Terraform module

Help Contribute to Open Source

Terraform module which creates the CloudFront distribution for a WordPress website with pre-configured settings.

Example

module "cloudfront_wordpress" {
   source = "soroush/cloudfront_wordpress/aws"
   cnames = ["www.example.com"]
   domain_name = "example.com"
   origin_id = "E22XRTe7wQ72"
   enabled = true
   origin_protocol_policy = "http-only"
   acm_certificate_arn = "arn:aws:acm:us-east-1:20:certificate/9489-60"
   tags = {
     name = "production"
   }
}

Terraform version

Terraform version 0.11.7 or newer is required for this module to work.

Inputs

Name Description Type Default Required
cnames the custom domain name which you would later on point the cname to CloudFront DNS name string false yes
domain_name The website root domain name string false yes
origin_id Unique identifer for the origin example: master_origin string false yes
acm_certificate_arn The SSL certificate ARN (Amazon Resource Name). This can be found on the “Certificate Manager” dashboard. string false yes
origin_protocol_policy Either one of them (http-only, https-only,match-viewer) string false yes
tags Tags to assign to the distribution string <map> yes
cookies_whitelisted_names List of cookies to be whitelisted. By default has the WordPress cookies string <list> no
http_port The HTTP port which Cloudfront should connect to the origin string 80 no
https_port The HTTPS port which Cloudfront should connect to the origin string 443 no
min_ttl The minimum time you want objects to stay in CloudFront string 0 no
default_ttl The default amount of time an object is ina CloudFront cache before it sends another request in absence of Cache-Control string 300 no
max_ttl The maxium amount of seconds you want CloudFront to cache the object, before feching it from the origin string 31536000 no
enabled Whether the distribution is enabled or not string true no

Authors

Maintained by Soroush Atarod. Find out more, please visit InfinityPP

License

Apache 2 Licensed. See LICENSE for full details.

terraform-aws-cloudfront-wordpress's People

Contributors

pcfens avatar soroushatarod avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.