Resource: aws_appstream_fleet

Provides an AppStream fleet.

Example Usage

resource "aws_appstream_fleet" "test_fleet" {
  name = "test-fleet"

  compute_capacity {
    desired_instances = 1
  }

  description                        = "test fleet"
  idle_disconnect_timeout_in_seconds = 60
  display_name                       = "test-fleet"
  enable_default_internet_access     = false
  fleet_type                         = "ON_DEMAND"
  image_name                         = "Amazon-AppStream2-Sample-Image-03-11-2023"
  instance_type                      = "stream.standard.large"
  max_user_duration_in_seconds       = 600

  vpc_config {
    subnet_ids = ["subnet-06e9b13400c225127"]
  }

  tags = {
    TagName = "tag-value"
  }
}

Argument Reference

The following arguments are required:

The following arguments are optional:

compute_capacity

Exactly one of desired_instances or desired_sessions must be set, based on the type of fleet being created.

domain_join_info

vpc_config

Attribute Reference

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

compute_capacity

Import

In Terraform v1.5.0 and later, use an import block to import aws_appstream_fleet using the id. For example:

import {
  to = aws_appstream_fleet.example
  id = "fleetNameExample"
}

Using terraform import, import aws_appstream_fleet using the id. For example:

% terraform import aws_appstream_fleet.example fleetNameExample