Ability to tag ALL resources created by Packer

Is there a motivation for not providing configuration to allow tagging of all resources created by Packer. Specifically, it seems it is not currently possible to tag SecurityGroups and KeyPairs created by Packer. Even though they are temporary resources, we would like the ability to tag them.

Hello there !

Is there a motivation for not providing configuration to allow tagging of all resources created by Packer.

The Azure builders allows to do this using the azure_tags: Azure Builder | Integrations | Packer | HashiCorp Developer but I think this is the only builder doing this.

I’d recommend on opening a feature request issue in the packer repo, if you really need this.

Another option is to use HCL2 and merge your tags together at the moment of using them, for example:

  tags = ${merge(
        local.common_tags,
        local.specific_tags,
    )}
}