This repository contains my personal Terraform projects and infrastructure automation labs. It serves as a hands-on environment for exploring Terraform best practices, cloud automation, and infrastructure as code (IaC).
Each directory in this repository represents a separate Terraform lab or module.
- Deploy AWS 3 tier architecture with dedicated vpc and select cidr range, db & app private tier, public web tier, and bastion public subnet across single/multi-region/az, with load balancing and auto scaling, observability
- Deploy flavours of aws rds/aurora database configurations that demonstrate maa best practise
To use these Terraform configurations, ensure you have the following installed:
-
Terraform (latest version)
-
AWS CLI (
aws configure
for authentication) -
An AWS account with necessary IAM permissions
Connect Aurora/RDS:
-
Generate an RDS IAM Token from the Bastion Host:
aws rds generate-db-auth-token \ --hostname <aurora-cluster-endpoint-name> \ --port 5432 \ --region us-east-1 \ --username iam_db_user
-
Connect using psql:
PGPASSWORD=$(aws rds generate-db-auth-token \ --hostname <aurora-cluster-endpoint-name> \ --port 5432 \ --region us-east-1 \ --username iam_db_user) \ psql "host=<aurora-cluster-endpoint-name> user=iam_db_user dbname=auroradb sslmode=require"
-