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_access_group_policy with addition of account_management doesn't apply #1551

Closed
argeiger opened this issue Jun 16, 2020 · 2 comments
Closed
Assignees
Labels
service/IAM Issues related to IAM

Comments

@argeiger
Copy link

Terraform Version

Terraform v0.12.24

  • provider.ibm v1.7.1

Affected Resource(s)

  • ibm_iam_access_group_policy

Terraform Configuration Files

Initial apply

resource "ibm_iam_access_group" "accgrp" {
  name = "mygroup"
}

resource "ibm_iam_access_group_policy" "policy" {
  access_group_id = ibm_iam_access_group.accgrp.id
  roles           = ["Viewer"]
}

Updated apply:

resource "ibm_iam_access_group" "accgrp" {
  name = "mygroup"
}

resource "ibm_iam_access_group_policy" "policy" {
  access_group_id = ibm_iam_access_group.accgrp.id
  roles           = ["Viewer"]
  account_management = true
}

Expected Behavior

The plan shows the change:

Terraform will perform the following actions:

  # ibm_iam_access_group_policy.policy_base will be updated in-place
  ~ resource "ibm_iam_access_group_policy" "policy_base" {
        access_group_id    = "AccessGroupId-cccb0318-dbcc-46c5-9804-d106c0cfd81e"
      ~ account_management = false -> true
        id                 = "AccessGroupId-cccb0318-dbcc-46c5-9804-d106c0cfd81e/31417b19-437c-4422-9ed7-59822f1b7e81"
        roles              = [
            "Viewer",
        ]
        version            = "1-03ccb8aee41599e4ed4ee5fb26b78e2a"

        resources {
            attributes = {}
        }
    }

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

and expected behavior is that the change actually apply

Actual Behavior

Terraform showed that there was a change but if you go the access group, no change was made

image

Steps to Reproduce

  1. Apply the initial apply hcl above
  2. Apply the updated apply hcl above
@hkantare
Copy link
Collaborator

Currently we have update support on change of roles or resource attribute..we need to extend it to account_management attribute.

We will plan in upcoming sprints

hkantare added a commit to hkantare/terraform-provider-ibm that referenced this issue Aug 20, 2020
hkantare added a commit that referenced this issue Aug 20, 2020
@kavya498 kavya498 added the service/IAM Issues related to IAM label Mar 30, 2021
@hkantare
Copy link
Collaborator

closing this issue now we have support with account_management
https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs/resources/iam_access_group_policy

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

No branches or pull requests

3 participants