Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conformity_azure_account does not read tags from backend #25

Open
jbrmg opened this issue Jun 7, 2022 · 1 comment
Open

conformity_azure_account does not read tags from backend #25

jbrmg opened this issue Jun 7, 2022 · 1 comment

Comments

@jbrmg
Copy link
Contributor

jbrmg commented Jun 7, 2022

Hi,

the conformity_azure_account resource does not not read the account tags from the backend. As a consequence of this, tag changes in the backend cannot be taken into account by Terraform. In addition, existing tags are also not added to the Terraform state when a resource is imported into the state and are overwritten on the first terraform apply.

The conformity_aws_account does behave correctly: https://github.com/trendmicro/terraform-provider-conformity/blob/main/conformity/resource_aws_account.go#L157

@mustafa-qamaruddin
Copy link

mustafa-qamaruddin commented Jul 20, 2022

I have encountered the same issue in release v0.4.5:

Terraform will perform the following actions:

  # conformity_azure_account.test will be updated in-place
  ~ resource "conformity_azure_account" "test" {
        id                  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxx"
        name                = "test"
      ~ tags                = [
          - "env",
        ]
        # (3 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants