Resource: aws_appstream_user_stack_association

Manages an AppStream User Stack association.

Example Usage

resource "aws_appstream_stack" "test" {
  name = "STACK NAME"
}

resource "aws_appstream_user" "test" {
  authentication_type = "USERPOOL"
  user_name           = "EMAIL"
}

resource "aws_appstream_user_stack_association" "test" {
  authentication_type = aws_appstream_user.test.authentication_type
  stack_name          = aws_appstream_stack.test.name
  user_name           = aws_appstream_user.test.user_name
}

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:

Import

In Terraform v1.5.0 and later, use an import block to import AppStream User Stack Association using the user_name, authentication_type, and stack_name, separated by a slash (/). For example:

import {
  to = aws_appstream_user_stack_association.example
  id = "userName/auhtenticationType/stackName"
}

Using terraform import, import AppStream User Stack Association using the user_name, authentication_type, and stack_name, separated by a slash (/). For example:

% terraform import aws_appstream_user_stack_association.example userName/auhtenticationType/stackName