Repository navigation
Description
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
TagResourceon an ECS task definition answers200and writes nothing.
All three emphasised claims are false as of v0.115.0:
TagResourceno 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."- The ECS ARN resolver does have a
task-definitionarm.ecsTagStateKey(emulator/ecs_plugin.go:1221-1281) handlescluster,service,taskandtask-definition, the last parsing{family}:{revision}. - The Resource Groups Tagging API can tag both.
tagging_plugin.go:1003delegates toecsTagStateKey, and the shared writer'secsarm (tagging_plugin.go:1224-1233) merges viaecsMergeRecordTags.
And the same file already says so correctly at docs/services.md:7654-7658:
TagResourcesandUntagResourcesreach 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-5806no longer claims that an ECS service or task definition is unreachable through the tagging API, or thatTagResourceon 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.shstays green. -
make docs-reference-checkpasses — the affected lines are in the hand-written portion, not the generated table atdocs/services.md:5-81.
Documentation only; no behaviour change.
Activity