Skip to content

Simple Terraform for bringing up a static site on S3, with Cloudflare in front of it.

Notifications You must be signed in to change notification settings

srkiNZ84/cloudflare-s3-site-tf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cloudflare, S3, Terraform static site setup

About

Simple Terraform to create an S3 bucket, configure it for website hosting and then point a CloudFlare site at it using a CNAME record.

Requirements/Dependencies

  • Terraform
  • An AWS account
  • A Cloudflare account
  • A Cloudflare "site"
  • A DNS name that you own/control

How to use this

Add your AWS API key and Cloudflare API key to a ".tfvars" file. Update the default domain to use (currently set to "srdan.nz") and then run:

terraform init

terraform plan -var-file=my.tfvars

terraform apply -var-file=my.tfvars

About

Simple Terraform for bringing up a static site on S3, with Cloudflare in front of it.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published