Architecture Flow
Project Overview
This project demonstrates a secure static website architecture deployed on AWS using Infrastructure as Code. Website content is stored in Amazon S3 and delivered globally through CloudFront. Origin Access Control ensures users access content through CloudFront instead of directly from the S3 bucket.
Step-by-Step Build Process
- Created a GitHub repository.
- Cloned the repository into Visual Studio Code.
- Built Terraform project structure.
- Configured AWS provider and variables.
- Created an S3 bucket using Terraform.
- Configured ownership controls and public access settings.
- Enabled static website hosting.
- Uploaded HTML files using Terraform-managed S3 objects.
- Created CloudFront Origin Access Control.
- Created CloudFront distribution.
- Added secure S3 bucket policy for CloudFront access.
- Verified website delivery through CloudFront.
Terraform Commands Used
terraform init – Initialize Terraform.
terraform fmt – Format Terraform code.
terraform validate – Validate configuration.
terraform plan – Preview infrastructure changes.
terraform apply – Deploy infrastructure.
terraform state list – Verify Terraform-managed resources.
Skills Demonstrated
- Terraform Infrastructure as Code
- Amazon S3 Static Website Hosting
- CloudFront CDN Deployment
- Origin Access Control Security
- S3 Bucket Policies
- Git & GitHub Workflow
- AWS Architecture Design
Technical Journey
Progressed from fibre network engineering to security operations and technical support, building strong expertise in networking, system integration, and troubleshooting. Currently focused on cloud engineering, designing scalable AWS solutions using Terraform and serverless technologies.
Author
Built by Himanshu Himanshu as part of a hands-on AWS Cloud Engineering portfolio project.