https://github.com/sergej-brazdeikis/terraform-static-website-s3-cloudfront
Terraform template to create static website on AWS S3 & Cloudfront based on variables
https://github.com/sergej-brazdeikis/terraform-static-website-s3-cloudfront
Last synced: 4 months ago
JSON representation
Terraform template to create static website on AWS S3 & Cloudfront based on variables
- Host: GitHub
- URL: https://github.com/sergej-brazdeikis/terraform-static-website-s3-cloudfront
- Owner: sergej-brazdeikis
- Created: 2016-06-11T23:25:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-04T19:57:23.000Z (over 8 years ago)
- Last Synced: 2024-06-16T05:33:08.650Z (8 months ago)
- Language: HCL
- Size: 8.79 KB
- Stars: 38
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Terraform template to provision website on AWS S3 with Cloudfront and Route53
[](https://circleci.com/gh/sjevs/terraform-static-website-s3-cloudfront)
### Features
* No coding needed, just set your domain in the configuration
* Covered with [integration test](circle.yml) against AWS. So it is stable and functioning### Prerequisites
* Installed [Terraform](https://www.terraform.io)
* 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](https://www.terraform.io/docs/state/)
### Other
* [Serverless blog costs on AWS S3](http://perfect-blog.jevsejev.io/2016/05/17/aws-serverless-blog-costs/)
### Terms
[MIT License](https://tldrlegal.com/license/mit-license)