I’m upgrading from `@pulumi/aws` v6 to v7. I have ...
# aws
g
I’m upgrading from
@pulumi/aws
v6 to v7. I have the following in my
Pulumi.dev.yaml
file
Copy code
config:
  aws:defaultTags:
    tags:
      application: "application-name"
      team: "my-team"
  aws:region: us-east-1
However, when I run
pulumi up --refresh --run-program
, the preview shows that it would remove all of the default tags. How do I fix this? It doesn’t seem explicitly mentioned in the upgrade docs. Will I need to use a custom provider just to use default tags?
1
n
Can you share the plan output that you get?
g
@numerous-book-75463 here is an example
Copy code
~ aws:rds/instance:Instance: (update)
        [id=db-ABC123]
        [urn=urn:pulumi:dev::infrastructure::aws:rds/instance:Instance::infrastructure-database]
        [provider: urn:pulumi:dev::infrastructure::pulumi:providers:aws::default_6_83_0::2e9536a5-249a-4459-a2b3-089589baee9f => urn:pulumi:dev::infrastructure::pulumi:providers:aws::default_7_3_1::[unknown]]
      + region: "us-east-1"
      - tags  : {
          - application        : "application-name"
          - team               : "my-team"
        }
High-level plan looks like this (resource names hidden)
n
Thanks I'll take a look
g
Thank you for looking into it
n
It looks like this is just a presentation issue. Pulumi shows a diff because the defaultTags are no longer flowing through the
tags
input, but when the change is actually applied the
tags
and
defaultTags
are merged so the tags are not removed.
g
Thanks! I ran the upgrade, and it indeed didn’t remove the tags on AWS
1