Skip to content

Tag ECS services and task definitions with project #196

Closed

Description

@ale210

Overview

We need ECS services and task definitions to carry a project tag, because none of the ten services has one today and ecs:UpdateService cannot be restricted to a project's own services without it.

Action Items

  • In terraform/modules/container/main.tf, add the following to the ECS service resources and to the task definition resource:
  tags = {
    project = var.project_name
  }
  • Decide whether enable_ecs_managed_tags or propagate_tags should be set on the service so that running tasks inherit the tag, and leave a comment recording the choice either way.
  • After the PR merges, confirm the tag is live across all ten services: aws ecs list-tags-for-resource --resource-arn <service-arn>.

Resources/Instructions

  • var.project_name is already passed to this module correctly by every project's environment-*.tf, so no new variable is needed.
  • Precedent for the change: add project tag to ecr #131 (ECR) and add project tag to secret #130 (SSM parameters).
  • Line numbers were accurate when this issue was written (2026-09-01) and may drift; find the code by the resource name if so.

Activity

  1. added this to the 02 - Security milestone on Sep 2, 2026
  2. moved this from New Issue Review to Prioritized Backlog in CoP: DevOps: Project Boardon Sep 5, 2026
  3. self-assigned this
    on Sep 10, 2026
  4. moved this from Prioritized Backlog to In progress (actively working) in CoP: DevOps: Project Boardon Sep 10, 2026
  5. moved this from In progress (actively working) to Done in CoP: DevOps: Project Boardon Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Relationships

None yet

Development

No branches or pull requests

Issue actions