You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cfn: CreateStack's Tags.member.N is dropped, and nothing propagates a stack tag to its resources #764
CreateStack accepts Tags.member.N, and substrate drops them. CFNStackState has no Tags field at all, so the tags are not recorded on the stack, not reported by DescribeStacks, and not propagated to the resources the stack creates.
Both halves are missing and both are observable:
The stack's own tags. AWS's CreateStack documents up to 50 Tag members, and DescribeStacks reports them back. A caller who tags a stack and reads it back gets an
empty list here.
Propagation. AWS propagates a stack's tags to the resources it creates, for the
resource types that support tagging, so a policy or a cost report keyed on a stack tag
reaches the resources. Nothing propagates here.
#746 delivered the other mechanism — CloudFormation's own aws:cloudformation:stack-name/stack-id/logical-id stamp, which is CFN's bookkeeping and
not caller-supplied. That is why this is a separate issue rather than the rest of #746: the
stamp needed no new state, and this needs a Tags field on the stack record, a DescribeStacks member, and a decision about what happens to a propagated tag when the
caller later removes it from the stack.
The seam #746 built is reusable: StackDeployer.stampCFNResourceTags is called from the one
place that holds the physical ID and the stack context, so propagation is more tags through
the same call — but only for the resource types that path can resolve (EC2 today, see the
sibling issue on widening it).
Acceptance criteria
CreateStack's Tags.member.N is recorded on the stack and reported by DescribeStacks, with AWS's documented limits and key/value patterns.
UpdateStack can add, change and remove a stack tag, and the removal reaches the
resources the tag was propagated to.
A stack tag is propagated to the created resources that support tagging, and a
caller-supplied tag whose key begins with aws: is refused as AWS refuses it.
A resource tag the caller set directly is not clobbered by propagation.
docs/services.md records what propagates, what does not, and why.
Half of this shipped in #825 (v0.113.0): a stack records its own Tags.member.N and DescribeStacks reports them, with the update semantics AWS documents — omitted preserves, an empty list clears, members replace the set wholesale — and validation against the Tag data type's limits.
Two provenance points worth having on the issue:
The reserved aws: prefix is matched case-insensitively here, unlike EC2's, ELBv2's and IAM's checks, because the Template Reference states the rule outright: "The aws: prefix is reserved for AWS use. This prefix is case-insensitive." It is refused in a key only; a value beginning aws: is stored, since all AWS says of one is that "you can't update or delete the tag".
A stack tag's value may not be empty (model minimum 1), where IAM's and ELBv2's may (minimum 0). AWS's own inconsistency, asserted rather than smoothed over.
Still open, and what this issue now tracks: propagating a stack's tags onto the resources it creates ("CloudFormation also propagates these tags to the resources created in the stack"), the no-overwrite merge so a propagated tag cannot clobber one a caller set directly, and removal on UpdateStack by diffing the stored tag set against the new one. That work sits on top of #765, which widens the stamp resolver beyond EC2.
Related: #824 — CreateChangeSet still drops Tags.member.N.
Activity
feat(cloudformation,ec2): stamp aws:cloudformation:* on the EC2 resou…
feat(cfn): a stack records its own tags, and DescribeStacks reports t…
scttfrdmn commentedon Sep 12, 2026
Half of this shipped in #825 (v0.113.0): a stack records its own
Tags.member.NandDescribeStacksreports them, with the update semantics AWS documents — omitted preserves, an empty list clears, members replace the set wholesale — and validation against theTagdata type's limits.Two provenance points worth having on the issue:
aws:prefix is matched case-insensitively here, unlike EC2's, ELBv2's and IAM's checks, because the Template Reference states the rule outright: "Theaws:prefix is reserved for AWS use. This prefix is case-insensitive." It is refused in a key only; a value beginningaws:is stored, since all AWS says of one is that "you can't update or delete the tag".Still open, and what this issue now tracks: propagating a stack's tags onto the resources it creates ("CloudFormation also propagates these tags to the resources created in the stack"), the no-overwrite merge so a propagated tag cannot clobber one a caller set directly, and removal on
UpdateStackby diffing the stored tag set against the new one. That work sits on top of #765, which widens the stamp resolver beyond EC2.Related: #824 —
CreateChangeSetstill dropsTags.member.N.feat(cfn): a stack's own tags reach the resources it creates (#764) (#…
fix(cfn): a change set records its tags, reports them, and applies th…
feat(cfn): stamp aws:cloudformation:* on nine more resource types (#819…
fix(state): a listing's order comes from the state, not from Go's map…
feat(cfn): stamp the twelve resource types #835 unblocked (#819) (#1040)
feat(cfn): the aws:cloudformation:* stamp reaches AWS Config (#819) (#…