Skip to content

Setting default tags via env vars shows a broken preview #6002

@VenelinMartinov

Description

@VenelinMartinov

Describe what happened

The both the TF AWS provider and the pulumi AWS provider allow setting default tags via environment variables:

TF_AWS_DEFAULT_TAGS_abc:bus:owner=Cloud Platforms

In terraform this shows a correct preview, however in Pulumi it fails to show the values for the tags and shows instead:

                    [provider=urn:pulumi:abc-coreinfrastructure-non-prod::abc-cp-vpc::pulumi:providers:aws::default_7_11_0::ID]
                  ~ tagsAll: {
                      + abc:bus:owner         : <null>
...

Sample program

example = aws.s3.Bucket("example",
    bucket="my-tf-test-bucket",
    tags={
        "Name": "My bucket",
        "Environment": "Dev",
    })

Log output

No response

Affected Resource(s)

No response

Output of pulumi about

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSome behavior is incorrect or out of spec

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions