tlinhart / pulumi-aws-tags

Pulumi package that helps manage tags for AWS resources
MIT License
8 stars 2 forks source link

Why is `aws:autoscaling/group:Group` not in `_NOT_TAGGABLE_RESOURCE_TYPES`? #37

Open agibralter opened 5 days ago

agibralter commented 5 days ago

Is there any reason not to include ASGs in _NOT_TAGGABLE_RESOURCE_TYPES? Right now it seems there's no way to avoid pulumi.log.warn(f"{args.type_} does not support auto-tagging") showing up when I run pulumi...?

tlinhart commented 4 days ago

It’s because technically ASG does support tagging, it just uses different format and, more importantly, an additional parameter than just a tag key and value (see https://www.pulumi.com/registry/packages/aws/api-docs/autoscaling/group/#grouptag). The warning just informs the user that the resource is not supported by the library as it would (as of now) have to somehow infer the value for the additional parameter which is required.

There are three options: