This is a submission for the Amazon Q Developer "Quack The Code" Challenge: Crushing the Command Line
What I Built
I built a CLI-based automation tool called Terraform Automation Tool that simplifies and streamlines the process of managing and bootstrapping AWS infrastructure lab environments using Terraform. The tool allows developers and educators to:
- Choose from a list of pre-configured AWS labs (e.g., 3-tier architecture, static websites, RDS setup).
- Automatically generate, configure, and deploy the necessary Terraform code.
- Customize lab scaffolding interactively using a cross-platform terminal interface.
This solves the problem of manual setup and error-prone provisioning of AWS labs, especially useful for students, trainers, and workshop facilitators who want to spin up consistent and reproducible environments quickly.
Demo
Here's a quick demo of the tool in action:
The CLI interface is intuitive and works across macOS, Linux, and Windows.
Code Repository
Explore the full project here:
🔗 GitHub – vuongbachdoan/terraform-automation-bot
How I Used Amazon Q Developer
Amazon Q Developer was instrumental in shaping both the design and functionality of this CLI-based tool. It supported me in building a smart, task-driven menu with the following interactive options:
? What do you want to do?
> ✨ Generate Terraform Folder Structure
✨ Optimize Terraform Source Code
✨ Check for Security Issues
✨ Deploy Terraform Resources
✨ Destroy Terraform Resources
Here’s how Amazon Q Developer contributed throughout the development process:
- 🛠️ Generated Terraform scaffolding logic for the “Generate Terraform Folder Structure” option, ensuring clean, modular layouts that follow best practices.
- 🚀 Recommended optimizations for Terraform source code by highlighting unused variables, redundant resources, and performance tweaks.
- 🔐 Guided me in integrating security checks, helping build logic to detect exposed credentials, misconfigured IAM policies, and open ports.
- 📦 Assisted with deployment and teardown workflows by suggesting reliable patterns for
terraform apply
andterraform destroy
, including state locking and error handling.
Amazon Q served as a real-time AI collaborator that accelerated the build process, reduced trial-and-error, and made the CLI smarter and safer for any user working with AWS infrastructure.
⚠️ By submitting this entry, I agree to receive communications from AWS regarding products, services, events, and special offers. I can unsubscribe at any time. My information will be handled in accordance with AWS's Privacy Policy. Additionally, my submission and project may be publicly featured on AWS's social media channels or related promotional materials.