
A clean, production-style Bash script that automates the process of launching an AWS EC2 instance using the AWS CLI. It acts as a lightweight alternative to IaC tools for simple deployments, featuring modular functions, automatic AWS CLI installation, credential validation, strict error handling, and environment-based configuration (.env).
Solution: Engineered an automated bash script that securely reads environment configurations to launch EC2 instances, ensuring repeatable and consistent cloud infrastructure provisioning.
Solution: Implemented auto-detection and installation of the AWS CLI, robust credential validation before API calls, and native polling to guarantee the instance reaches a running state before completion.