Resource: aws_identitystore_user

This resource manages a User resource within an Identity Store.

Example Usage

Basic Usage

resource "aws_identitystore_user" "example" {
  identity_store_id = tolist(data.aws_ssoadmin_instances.example.identity_store_ids)[0]

  display_name = "John Doe"
  user_name    = "johndoe"

  name {
    given_name  = "John"
    family_name = "Doe"
  }

  emails {
    value = "john@example.com"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

addresses Configuration Block

emails Configuration Block

name Configuration Block

The following arguments are required:

The following arguments are optional:

phone_numbers Configuration Block

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import an Identity Store User using the combination identity_store_id/user_id. For example:

import {
  to = aws_identitystore_user.example
  id = "d-9c6705e95c/065212b4-9061-703b-5876-13a517ae2a7c"
}

Using terraform import, import an Identity Store User using the combination identity_store_id/user_id. For example:

% terraform import aws_identitystore_user.example d-9c6705e95c/065212b4-9061-703b-5876-13a517ae2a7c