ramkrishna-12/aws-task ? reverse-engineered prompt

Reverse engineered prompt

Build me the full deployment setup for a simple Spring Boot app that can be shipped to AWS in two ways, one using ECS Fargate and one using EKS.

I want the infrastructure defined in Terraform, with a VPC, public and private subnets, load balancer, security groups, ECR image repository, IAM roles, CloudWatch logs and dashboards, and autoscaling for the ECS service. Set it up so the app image is built in Docker, pushed from GitHub Actions using short lived AWS access, then deployed with the exact git SHA tag instead of anything mutable. After deployment, run a real health check against the live URL so we know it actually works.

Also add the Kubernetes path with manifests or kustomize so the same image can be deployed to EKS too, using the same ECR repo. Keep the setup tidy, repeatable, and production like, and if you need current AWS or Kubernetes docs, look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab