Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cob16/aws_static_website
A cloudfront hosted website that uses a private s3 backend
https://github.com/cob16/aws_static_website
Last synced: 7 days ago
JSON representation
A cloudfront hosted website that uses a private s3 backend
- Host: GitHub
- URL: https://github.com/cob16/aws_static_website
- Owner: cob16
- License: mit
- Created: 2020-05-16T17:40:35.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-26T14:30:41.000Z (over 1 year ago)
- Last Synced: 2023-07-26T15:38:11.513Z (over 1 year ago)
- Language: HCL
- Size: 57.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A static website
On a AWS free account this will cost around $0.60 per month (not including domain registration)A cloudfront hosted website that uses a private s3 backend
```
+------+ +--------------+ +------+
| | | | | |
| DNS | +---> | CloudFront | +--> | S3 |
| | | | | |
+------+ +--------------+ +------+
```## And some monitoring
Cloudwatch billing and usage alerts to pager duty based of customisable thresholds
```
+------------+ +-------+ +-------------+
| | | | | |
| Cloudwatch | +---> | SNS | +--> | Pagerduty |
| | | | | |
+------------+ +-------+ +-------------+
```# Prerequisities
- Terraform (+v0.12)
- An AWS account (free tier)
- Pagerduty account (free tier)# Setup
- Remove line 8 in `main.tf` `backend.s3`
- copy the example tfvars file and edit
```bash
cp example.tfvars terraform.tfvars
```
- edit `terraform.tfvars` to fit your needsNote: The descriptions of`variables.tf` can give you hints