Skip to content

docs: services.md contradicts itself about what the tagging API reaches, and describes ECS behaviour v0.115.0 removed #867

Closed

Description

@scttfrdmn

What is wrong

docs/services.md states two things about ECS tagging that the tree no longer does, and contradicts itself about a third — inside the same file.

At docs/services.md:5794-5806, in the CloudFormation stack-tag propagation section:

A tagging surface but no merge arm: filed as #835. Eleven more types — a KMS key, a Secrets Manager secret, an SNS topic, a Step Functions activity, an ECS service and task definition, an RDS DB cluster and DB subnet group, an ACM certificate, a CloudFront distribution and an SSM parameter — have both tag state and a tagging call, and are still unstamped. […] so the same gap also means the Resource Groups Tagging API cannot tag them […] For three of the eleven — an ECS task definition, an RDS DB cluster and an RDS DB subnet group — the service's own tagging operation cannot reach the resource either, because its ARN resolver has no arm for that kind; a TagResource on an ECS task definition answers 200 and writes nothing.

All three emphasised claims are false as of v0.115.0:

  1. TagResource no longer answers 200 having written nothing. applyTagsToResource (emulator/ecs_plugin.go:1055-1091) returns an error on every path that does not write, and its doc comment (:1049-1054) records that this is precisely what tagging: TagResources reports a nonexistent resource as InternalServiceException/500, the code AWS reserves for an unsupported type #845 fixed: "Every way of not writing a tag is an error, because the alternative is the response AWS documents for a successful tag […] over a resource nothing was written to."
  2. The ECS ARN resolver does have a task-definition arm. ecsTagStateKey (emulator/ecs_plugin.go:1221-1281) handles cluster, service, task and task-definition, the last parsing {family}:{revision}.
  3. The Resource Groups Tagging API can tag both. tagging_plugin.go:1003 delegates to ecsTagStateKey, and the shared writer's ecs arm (tagging_plugin.go:1224-1233) merges via ecsMergeRecordTags.

And the same file already says so correctly at docs/services.md:7654-7658:

TagResources and UntagResources reach a slightly different set […] they additionally reach an ECS service, task and task definition, and EFS access points and Glue's other three types.

So a reader is told opposite things by one reference document depending on which section they land in.

Why it matters

docs/services.md is the generated-and-hand-written service reference; a consumer writing a test against substrate's tagging behaviour reads it to learn what is reachable. Being told that a TagResource on an ECS task definition silently succeeds without writing is worse than being told nothing: it describes a defect that was fixed, and it would lead someone to write a test asserting the old, wrong behaviour.

This also settles a stale claim on #835 itself — its first maintainer comment carries the same ECS task-definition row, citing ecs_plugin.go:1117-1158 and :1037-1039, both of which have moved.

Acceptance criteria

  • docs/services.md:5794-5806 no longer claims that an ECS service or task definition is unreachable through the tagging API, or that TagResource on a task definition answers 200 without writing.
  • The list of types still awaiting a merge arm reflects the nine that remain, not the original eleven.
  • The section is consistent with docs/services.md:7647-7658, which already enumerates the reachable set correctly.
  • Prose cites issue numbers rather than versions, so scripts/check-doc-versions.sh stays green.
  • make docs-reference-check passes — the affected lines are in the hand-written portion, not the generated table at docs/services.md:5-81.

Documentation only; no behaviour change.

Activity

  1. added this to the v0.116.0 milestone on Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: taggingtype: docs

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions