Skip to content

Terraform demo which creates an S3 bucket, uploads content and puts a CloudFront distribution on the front.

Notifications You must be signed in to change notification settings

lhaggar/terraform-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AWS S3 & Cloudfront Terraform Demo

Built as part of a flash talk "Intro to Terraform". The Terraform scripts included will deploy an S3 website bucket, upload the contents of the public folder, and deploy a Cloudfront Distribution.

How to use

Prerequisite is to have Terraform v0.15.3 or higher installed.

  • Clone this repo.
  • Go to terraform directory.
  • Run terraform init.
  • Run terraform apply.
  • S3 & Cloudfront URLs will be output.

Note: S3 bucket names must be unique, if you get an error then someone else has created the bucket and you'll need to update the name to something else in terraform/s3.tf

About

Terraform demo which creates an S3 bucket, uploads content and puts a CloudFront distribution on the front.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published