Skip to content

sjevs/terraform-static-website-s3-cloudfront

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

Terraform template to provision website on AWS S3 with Cloudfront and Route53

CircleCI

Features

  • No coding needed, just set your domain in the configuration
  • Covered with integration test against AWS. So it is stable and functioning

Prerequisites

  • Installed Terraform
  • AWS Account. This account needs to have enough permissions to setup the infrastructure
    • AWS Access Key ID
    • AWS Secret Access Key

Setup

  • cp secret.tfvars_template secret.tfvars. Edit secret.tfvars, to put your AWS keys there.
  • cp website.tfvars_template website.tfvars. Edit website.tfvars, put your website domain there
  • Provision
terraform apply -var-file website.tfvars  -var-file secret.tfvars

It also creates locally state file. Read more about it here

Other

Terms

MIT License

About

Terraform template to create static website on AWS S3 & Cloudfront based on variables

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages