This solution provides a robust, scalable LAMP stack infrastructure that meets all requirements while maintaining security, reliability, and cost-effectiveness across multiple environments.
# For LocalStack testing
docker-compose up -d
export TF_VAR_use_localstack=true
# Initialize and deploy local environment
cd environments/local
terragrunt run-all init
terragrunt run-all plan
terragrunt run-all apply
```bash
export TF_PLUGIN_MAGIC_COOKIE="allow_unsafe_plugins"
export TF_PLUGIN_TIMEOUT=90s
export TF_LOG=DEBUG