Manages an AppStream Fleet Stack association.
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
}
The following arguments are required:
fleet_name
- (Required) Name of the fleet.stack_name
(Required) Name of the stack.This resource exports the following attributes in addition to the arguments above:
id
- Unique ID of the appstream stack fleet association, composed of the fleet_name
and stack_name
separated by a slash (/
).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