Am I trying to do something that is not possible?
# general
b
Am I trying to do something that is not possible?
e
https://www.pulumi.com/docs/intro/concepts/resources/options/transformations/ You probably want to check
args.type
is a type that can have tags, and you need to manually merge the existing properties with the new ones, the transform doesn't do that automatically.
b
e
b
then, is it need to maintain that taggableresourcetypes array?
e
yeh I don't think there's any way to work that automatically at the moment
maybe something could be done with the type schemas and reflection but not something we've looked into
b
what if I'm sure that all resources that I'm using supports tags? I can skip that if taggable, right?
e
Yeh probably
b
works well, I ended doing this
Copy code
const notTaggable = [
  "aws:iam/rolePolicyAttachment:RolePolicyAttachment",
  "aws:ec2/securityGroupRule:SecurityGroupRule",
  "aws:ec2/routeTableAssociation:RouteTableAssociation",
];
:)
easier than maintain a list of taggable items