https://github.com/daviddanso/terraform-aws-static-website
static website on AWS S3 with Terraform as IaC
https://github.com/daviddanso/terraform-aws-static-website
aws s3-website terraform
Last synced: about 2 months ago
JSON representation
static website on AWS S3 with Terraform as IaC
- Host: GitHub
- URL: https://github.com/daviddanso/terraform-aws-static-website
- Owner: DavidDanso
- Created: 2024-04-04T19:05:12.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-06T00:03:57.000Z (over 2 years ago)
- Last Synced: 2025-01-11T15:23:24.582Z (over 1 year ago)
- Topics: aws, s3-website, terraform
- Language: HTML
- Homepage:
- Size: 9.94 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Terraform AWS S3 Static Site
============================
This repository contains Terraform code to host a static website on AWS S3.
## Architecture
### Tech Stack and AWS Services
---------------------------
- **Terraform**: Infrastructure as Code (IaC) tool for provisioning and managing AWS resources.
- **AWS S3**: Simple Storage Service for storing and serving static website content.
- **CloudFront**: Content Delivery Network (CDN) for distributing static content globally and improving performance.
This is a basic example of a Terraform AWS S3 static site. Depending on your requirements, you might need to add more services or modify this architecture.
Prerequisites
-------------
- [Terraform](https://www.terraform.io/downloads.html) installed
- [AWS CLI](https://aws.amazon.com/cli/) installed
- [AWS account](https://aws.amazon.com/) with valid credentials
How to Use
----------
1. **Clone the repository**:
```bash
git clone https://github.com/DavidDanso/terraform-aws-static-website.git
```
2. **Navigate to the repository**:
```bash
cd terraform-aws-s3-static-website
```
3. **Configure AWS credentials**:
```bash
aws configure
```
4. **Create a Terraform backend**:
```bash
terraform init
```
5. **Review changes**:
```bash
terraform plan
```
6. **Create the infrastructure**:
```bash
terraform apply
```
7. **Destroy the infrastructure**:
```bash
terraform destroy
```
## Author
David Danso - Initial work - [GitHub Profile](https://github.com/DavidDanso)
##### Email: davidkellybrownson@gmail.com
### Happy Coding!