This repository is dedicated to documenting my journey in the project, "Building a Scalable 2-Tier Architecture in AWS with Terraform".
In this project i'm able to create a Scalable 2-tier architecture in AWS using Terraform. Additionally i have hosted a containerized python application using docker in EC2 instance & setup the Terraform remote backend using S3 & Dynamo DB.
-
Create an AWS account and install & configure AWS CLI using AWS Access & Secret key
-
Github account & fork the below Python MYSQL Application
-
Install & configure Terraform
-
Configure your AWS region, AWS Secret Key, and Database Passowrd in the terraform.tfvars file
-
Create a S3 bucket using below AWS CLI Command & replace the S3 bucket name & region in the providers.tf file.
aws s3api create-bucket --bucket <your-bucket-name> --region <your-aws-region> --output json
-
Create a Dynamo DB using below AWS CLI Command & replace the DynamodDB Table name in the providers.tf file.
aws dynamodb create-table --region <your-aws-region> --table-name <your-table-name> --attribute-definitions AttributeName=LockID,AttributeType=S --key-schema AttributeName=LockID,KeyType=HASH --billing-mode PAY_PER_REQUEST --output json
- I have written a detailed guidelines in this blog 👇 Feel free to read & let me know if any changes / issues if you observed.
- Twitter: https://twitter.com/naveend3v
- Linkedin: https://www.linkedin.com/in/naveend3v/
- Github: https://github.com/naveend3v
- Email: naveenselvaraj1997@gmail.com