Resource: aws_finspace_kx_user

Terraform resource for managing an AWS FinSpace Kx User.

Example Usage

Basic Usage

resource "aws_kms_key" "example" {
  description             = "Example KMS Key"
  deletion_window_in_days = 7
}

resource "aws_finspace_kx_environment" "example" {
  name       = "my-tf-kx-environment"
  kms_key_id = aws_kms_key.example.arn
}

resource "aws_iam_role" "example" {
  name = "example-role"

  assume_role_policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Action = "sts:AssumeRole"
        Effect = "Allow"
        Sid    = ""
        Principal = {
          Service = "ec2.amazonaws.com"
        }
      },
    ]
  })
}

resource "aws_finspace_kx_user" "example" {
  name           = "my-tf-kx-user"
  environment_id = aws_finspace_kx_environment.example.id
  iam_role       = aws_iam_role.example.arn
}

Argument Reference

The following arguments are required:

The following arguments are optional:

Attribute Reference

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

Timeouts

Configuration options:

Import

In Terraform v1.5.0 and later, use an import block to import an AWS FinSpace Kx User using the id (environment ID and user name, comma-delimited). For example:

import {
  to = aws_finspace_kx_user.example
  id = "n3ceo7wqxoxcti5tujqwzs,my-tf-kx-user"
}

Using terraform import, import an AWS FinSpace Kx User using the id (environment ID and user name, comma-delimited). For example:

% terraform import aws_finspace_kx_user.example n3ceo7wqxoxcti5tujqwzs,my-tf-kx-user