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

Creating groups using the identity-domains module results in constantly changing attributes #26

Open
globalpayments-martinvanderboon opened this issue Mar 19, 2024 · 0 comments

Comments

@globalpayments-martinvanderboon

When using https://github.com/oracle-quickstart/terraform-oci-cis-landing-zone-iam/tree/v0.1.9/identity-domains and creating groups there are attributes that are repeatedly set.

The input is:

  identity_domain_groups_configuration = {
    default_identity_domain_id : "FEDERATED_DOMAIN"
    default_defined_tags : null
    default_freeform_tags : null
    groups : {
      GRP_ENTERPRISE_LZ_FRAMEWORK_ADMINS : {
        name        = "grp_enterprise_framework_admins"
        description = "ADMIN group - Enterprise LZ framework administrators"
      },
      GRP_ENTERPRISE_LZ_SECURITY_ADMINS : {
        name        = "grp_enterprise_security_admins"
        description = "ADMIN group - Enterprise LZ security administrators"
      }
    }
  }

The results are:

Terraform will perform the following actions:

  # module.user_domain.oci_identity_domains_group.these["GRP_ENTERPRISE_LZ_FRAMEWORK_ADMINS"] will be updated in-place
  ~ resource "oci_identity_domains_group" "these" {
        id                                                    = "..."
      ~ schemas                                               = [
            "urn:ietf:params:scim:schemas:core:2.0:Group",
          - "urn:ietf:params:scim:schemas:oracle:idcs:extension:dynamic:Group",
          - "urn:ietf:params:scim:schemas:oracle:idcs:extension:OCITags",
            "urn:ietf:params:scim:schemas:oracle:idcs:extension:group:Group",
          + "urn:ietf:params:scim:schemas:extension:custom:2.0:Group",
        ]
        # (11 unchanged attributes hidden)

      ~ urnietfparamsscimschemasoracleidcsextensiongroup_group {
          + creation_mechanism = "api"
            # (5 unchanged attributes hidden)
        }

      + urnietfparamsscimschemasoracleidcsextensionrequestable_group {}

        # (2 unchanged blocks hidden)
    }

  # module.user_domain.oci_identity_domains_group.these["GRP_ENTERPRISE_LZ_SECURITY_ADMINS"] will be updated in-place
  ~ resource "oci_identity_domains_group" "these" {
        id                                                    = "..."
      ~ schemas                                               = [
            "urn:ietf:params:scim:schemas:core:2.0:Group",
          - "urn:ietf:params:scim:schemas:oracle:idcs:extension:dynamic:Group",
          - "urn:ietf:params:scim:schemas:oracle:idcs:extension:OCITags",
            "urn:ietf:params:scim:schemas:oracle:idcs:extension:group:Group",
          + "urn:ietf:params:scim:schemas:extension:custom:2.0:Group",
        ]
        # (11 unchanged attributes hidden)

      ~ urnietfparamsscimschemasoracleidcsextensiongroup_group {
          + creation_mechanism = "api"
            # (5 unchanged attributes hidden)
        }

      + urnietfparamsscimschemasoracleidcsextensionrequestable_group {}

        # (2 unchanged blocks hidden)
    }

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

After an apply & plan the same results are found.

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

1 participant