Resource: aws_appstream_fleet_stack_association

Manages an AppStream Fleet Stack association.

Example Usage

resource "aws_appstream_fleet" "example" {
  name          = "NAME"
  image_name    = "Amazon-AppStream2-Sample-Image-03-11-2023"
  instance_type = "stream.standard.small"

  compute_capacity {
    desired_instances = 1
  }
}

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

resource "aws_appstream_fleet_stack_association" "example" {
  fleet_name = aws_appstream_fleet.example.name
  stack_name = aws_appstream_stack.example.name
}

Argument Reference

The following arguments are required:

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 Stack Fleet Association using the fleet_name and stack_name separated by a slash (/). For example:

import {
  to = aws_appstream_fleet_stack_association.example
  id = "fleetName/stackName"
}

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

% terraform import aws_appstream_fleet_stack_association.example fleetName/stackName