Day 25 - Terraform Import for Existing AWS Resources
Today I worked on Terraform import as part of Day 25 of my AWS Terraform learning series. In real projects, not every AWS resource starts from Terraform. Some resources are created manually from the AWS Console. Some are created by older scripts. Some are created by different teams before Infrastructure as Code is adopted. Terraform import helps bring those existing resources into Terraform state so they can be managed going forward. For this project, I created a few AWS resources manually first, then imported them into Terraform. What I Built I used three existing AWS resources: S3 bucket EC2 instance Security group These resources were created outside Terraform first. Then I wrote Terraform configuration blocks for them and used terraform import to connect those real AWS resources to Terraform state. Architecture The workflow is simple: Existing AWS resources already exist in the AWS account. Terraform configuration defines matching resource blocks. terraform import m...