We have two clusters for deploying ECS tasks - staging and production. When registering new task definition, in container definition we set ENVIRONMENT
variable (can be "PRODUCTION" or "STAGING"). This creates duplicate task definitions with just "environment" values being different in container definition. So we end up with task definition revisions looking like this:
task:5
task:4
task:3
task:2
task:1
And it's hard to tell from the glance which revision has "STAGING" as environment variable and which one is "PRODUCTION". Since our deployments are automated, it's not that big of a deal, but I was wondering how others handle situation like this. Maybe there's a better way?