Resource

dcloud_iam_group_membership

One IAM user in one IAM group.

Example Usage

resource "dcloud_iam_group_membership" "alice_developers" {
  group_id = dcloud_iam_group.developers.id
  user_id  = dcloud_iam_user.alice.id
}

Schema

Required

  • group_id (String) The id of the parent resource ({id} in the path). Changing it replaces the resource.
  • user_id (String) The IAM user to add. Changing it replaces the resource.

Read-Only

  • id (String) The resource's id.

Import

Import is supported using the following syntax:

The terraform import command can be used, for example:

terraform import dcloud_iam_group_membership.alice_developers <group-id>/<iam-user-id>

Generated from the provider's schema.