https://pulumi.com logo
Title
s

salmon-account-74572

04/27/2023, 3:55 PM
@polite-sandwich-68547 Which provider? For AWS, it’s possible via provider configuration (see the
defaultTags
section of https://www.pulumi.com/registry/packages/aws/installation-configuration/).
p

polite-sandwich-68547

04/28/2023, 7:15 AM
yes AWS, sorry forgot to mention; thank you very much @salmon-account-74572, trying now.
seems I can add defaultTags: in the Pulumi.yaml config section, though I cannot find any example on how to pass the tags object, will experiment w/ yaml syntax till something works
config:
  aws:defaultTags: ...
  aws:region: eu-west-1
probably a yaml dictionary object
found the correct syntax in a github issue:
aws:defaultTags:
    tags:
      Tag1: value1
      Tag2: value2
@salmon-account-74572 it's not working, I added the config
config:
  aws:defaultTags:
    tags:
      project: narvi
  aws:region: eu-west-1
but the resources are not being tagged on aws w/
pulumi up
adding the defaultTags config seems to have no effect
Resources: 13 unchanged
maybe a bug?
s

salmon-account-74572

04/28/2023, 2:16 PM
Yes, it could be a bug. Would you mind opening an issue?
p

polite-sandwich-68547

05/04/2023, 2:14 PM
there's an issue already open, I hope they find a fix soon