Is there a good way to share a tagging convention ...
# aws
c
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
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
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