Up-to-date reference of API arguments for IAM mapping you can get at documentation portal

opentelekomcloud_identity_mapping_v3

-> You must have security admin privileges in your OpenTelekomCloud cloud to use this resource. Please refer to User Management Model.

Example Usage

resource "opentelekomcloud_identity_mapping_v3" "mapping" {
  mapping_id = "ACME"
  rules      = <<EOF
  [
    {
      "local":[
        {
          "user":{"name":"{0}"}
        },
        {
          "groups":"[\"admin\",\"manager\"]"
        }
      ],
      "remote":[
        {
          "type":"uid"
        }
      ]
    }
  ]
EOF
}

Argument Reference

The following arguments are supported:

  • mapping_id - (Required) The ID of the mapping. Changing this creates a new mapping.

  • rules - (Required) Rules used to map federated users to local users.

-> For the full reference checkout Syntax of Identity Conversion Rules.

Attributes Reference

In addition to the arguments listed above, the following computed attributes are exported:

links - Resource links of an identity mapping.

Import

Mappings can be imported using the id, e.g.

terraform import opentelekomcloud_identity_mapping_v3.mapping ACME