Optimized for: Gemini / ChatGPT / Claude
Advanced AI Prompt for Blue-Green Deployment on AWS ECS
Use this engineered prompt to drastically optimize your workflow and output.
Required Variables
- ✦
[SERVICE_NAME] - ✦
[CLUSTER_NAME] - ✦
[TASK_DEFINITION]
blue-green-deployment-ecs.txt
Generate a sophisticated GitHub Actions workflow for a Blue-Green deployment to AWS ECS. Workflow requirements: 1) Build and push a new image to ECR. 2) Update the ECS Task Definition [TASK_DEFINITION] with the new image URI. 3) Use 'aws-actions/amazon-ecs-deploy-task-definition' to trigger a deployment to [SERVICE_NAME] in [CLUSTER_NAME]. 4) Integrate a wait-for-service-stability check. 5) Include a step to clean up old images in ECR to save costs.
Example Output
"An AWS-integrated workflow managing the full lifecycle from image build to ECS service update with health check verification."