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

IAM User inivte always shows a diff on "invited_users" #3863

Closed
hkantare opened this issue Jun 21, 2022 · 0 comments · Fixed by #3864
Closed

IAM User inivte always shows a diff on "invited_users" #3863

hkantare opened this issue Jun 21, 2022 · 0 comments · Fixed by #3864
Labels
service/IAM Issues related to IAM

Comments

@hkantare
Copy link
Collaborator

resource "ibm_iam_user_invite" "cis_kd-kdl" {
users = ["XXXXXX"]
iam_policy {
roles = ["Object Writer"]
resources {
service = "cloud-object-storage"
}
}
}
Terraform will perform the following actions:

  # ibm_iam_user_invite.cis_kd-kdl will be updated in-place
  ~ resource "ibm_iam_user_invite" "cis_kd-kdl" {
        id                      = "2022-06-21 08:35:18.640612 +0000 UTC"
      + invited_users           = (known after apply)
        # (2 unchanged attributes hidden)

        # (1 unchanged block hidden)
    }

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

───────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.
harinireddy@Harinis-MacBook-Pro invite % terraform1.1 plsn
Terraform has no command named "plsn". Did you mean "plan"?

To see all of Terraform's top-level commands, run:
  terraform -help
harinireddy@Harinis-MacBook-Pro invite % terraform1.1 plan
ibm_iam_user_invite.cis_kd-kdl: Refreshing state... [id=2022-06-21 08:35:18.640612 +0000 UTC]

Note: Objects have changed outside of Terraform

Terraform detected the following changes made outside of Terraform since the
last "terraform apply":

  # ibm_iam_user_invite.cis_kd-kdl has changed
  ~ resource "ibm_iam_user_invite" "cis_kd-kdl" {
        id                      = "2022-06-21 08:35:18.640612 +0000 UTC"
        # (2 unchanged attributes hidden)

      ~ iam_policy {
            # (2 unchanged attributes hidden)

          ~ resources {
              + attributes = {}
                # (1 unchanged attribute hidden)
            }
        }
    }


Unless you have made equivalent changes to your configuration, or ignored the
relevant attributes using ignore_changes, the following plan may include
actions to undo or respond to these changes.

───────────────────────────────────────────────────────────────────────────────

No changes. Your infrastructure matches the configuration.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
service/IAM Issues related to IAM
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant