Repository navigation
Description
Follow-up from #730's condition-key survey.
One bundled statement conditions on elasticloadbalancing:CreateAction: it allows
elasticloadbalancing:AddTags only when the tagging happens as part of a create, e.g.
{"Effect":"Allow","Action":"elasticloadbalancing:AddTags","Resource":"*",
"Condition":{"StringEquals":{"elasticloadbalancing:CreateAction":
["CreateTargetGroup","CreateLoadBalancer"]}}}The key has no producer, and the reason is bigger than the key: the ELB plugin has no tagging
at all. There is no AddTags, no RemoveTags, no DescribeTags, and ELBLoadBalancer.Tags
is never read or written. So the action the statement conditions does not exist, and a consumer
whose stack tags a load balancer or target group — which CDK does by default — gets no tags
back from any read.
elasticloadbalancing:CreateAction is the ELB analogue of the aws:TagKeys-style
create-and-tag pattern substrate already models for EC2: the tagging call made as part of a
create carries the name of the create it belongs to, and a standalone AddTags does not. That
distinction is what the condition tests, so it needs the create paths to know they are tagging
on behalf of a create.
Verify shapes and error codes against API_AddTags.html, API_RemoveTags.html and
API_DescribeTags.html in the Elastic Load Balancing v2 API reference, plus the
ResourceArns/tag-limit rules, before implementing.
Acceptance criteria
-
AddTags,RemoveTagsandDescribeTagsexist for load balancers, target groups,
listeners and rules, with shapes and error codes verified against the AWS reference. -
CreateLoadBalancer,CreateTargetGroup,CreateListenerandCreateRulepersist the
Tagsthey accept, and those tags are readable throughDescribeTags. -
elasticloadbalancing:CreateActionis populated for the tagging that a create performs
and absent for a standaloneAddTags, so the bundled statement allows the first and
denies the second. - A test shows both halves of that distinction.
-
docs/services.md's producerless-key table drops the row and the count is corrected; the
ELB coverage matrix picks up the new operations.
Activity
feat(elb): tagging, and a producer for elasticloadbalancing:CreateAct…
feat(tagging): reach all four ELBv2 taggable types (#863) (#1041)