https://pulumi.com logo
#aws
Title
# aws
c

crooked-pillow-11944

10/10/2021, 3:34 AM
Is there a good way to share a tagging convention across component resources? I use the same AWS tags on resources that are built in the same stack.
Hopefully that's what you were looking for
Just note that for overriding the auto injected tags for a particular resource\component, you'll need to 'explode' the default tags from config, with new tags you wanted so in typescript it would be like so: tags: {...tagsFromConfig, anotherTag:'anotherValue'}
c

crooked-pillow-11944

10/10/2021, 11:10 AM
That's exactly what I was looking for. Thanks!
ResourceTransformationResult
applies to every resource in
is_taggable
so no need to add any additional logic to component resources! the tags are appended - so you can add custom tags as well
m

millions-furniture-75402

10/11/2021, 1:04 PM
FWIW, this is great, we've merged/updated this code in our
pulumi-components
, but there are some missing / incompatible resources. Would be amazing if this were maintained.
Here is one issue we've had:
Copy code
// "aws:ecs/service:Service",  // InvalidParameterException: Long arn format must be used for tagging operations
IIRC something with load balancers was missing tags that was taggable as well
2 Views