Git Product home page Git Product logo

terraform-aws-site's Introduction

Terraform for S3 CloudFront site

This Terraform module creates the following resources:

  • S3 bucket
  • CloudFront distribution
  • SSL cert
  • Route53 record (optional)

Usage

provider "aws" {
  region = "eu-west-1"
}

provider "aws" {
  alias = "useast1"
  region = "us-east-1"
}

module "cloudfront_site" {
  source = "git::https://github.com/aliciasteen/terraform-aws-site.git"

  providers {
      aws.useast1 = "aws.useast1"
  }

  website_name = "site"
  hosted_zone_id = "zone_id"
  region = "eu-west-1"
  price_class = "PriceClass_100"
}

Requirements

Name Version
terraform >= 0.12

Providers

Name Version
aws n/a
aws.useast1 n/a

Inputs

Name Description Type Default Required
bucket_name Name of S3 bucket to create string n/a yes
website_name Website alias for cloudfront string n/a yes
hosted_zone_id Hosted zone id for domain name (optional) string "" no
price_class AWS Cloudfront price class. One of PriceClass_All, PriceClass_200, PriceClass_100 string "PriceClass_All" no
region AWS Region to create bucket in string "eu-west-1" no
route53-enabled Use route53 for DNS? bool true no

terraform-aws-site's People

Contributors

aliciasteen avatar

Watchers

James Cloos 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.