AWS network in code: one command takes an empty AWS account to a running web server.
Terraform builds a custom VPC, public subnet, internet gateway, route tables, security groups, an EC2 instance and an Elastic IP. Ansible then installs Docker and deploys NGINX, and a validation step checks SSH, Docker and the live web page.
Why it matters for a small business: the whole setup is repeatable, reviewable and easy to tear down, so nothing is clicked together by hand and forgotten. Code: github.com/nujabesploo/aws-terraform-ansible-platform
2
194
🚀 Troubleshooting Critical Terraform Drift in AWS Production
Project Description / Post Body:
I recently encountered a critical CI/CD failure while deploying a serverless backend to a new AWS environment. The pipeline was paralyzed due to "Resource Drift"—a mismatch between the Terraform state file and the actual infrastructure.
The Challenge:
A manual "hotfix" in the AWS Console created "ghost resources" (Secrets) that Terraform couldn't see.
This caused repeated deployment failures and blocked the staging environment.
The Solution:
Instead of tearing down the environment, I used the terraform import workflow to:
Documented the full fix in my technical blog (Link below)
https://shorturl.at/ZJR3g