Menu
Amazon AppStream 2.0
Developer Guide

Create AppStream 2.0 Stacks and Fleets

To stream your applications, Amazon AppStream 2.0 requires an environment consisting of a stack, an associated fleet and at least one application image. This tutorial walks through the steps to set up a stack and a fleet, and how to give users access to the stack. If you haven't already done so, we recommend that you try the procedures in Getting Started with Amazon AppStream 2.0 first.

If you want to create an image to use, see Tutorial: Use an AppStream 2.0 Image Builder to Create Images.

If you intend to join a fleet to an Active Directory domain, configure your Active Directory before following the steps below. For more information, see Using Active Directory Domains with AppStream 2.0.

Create a Fleet

Set up and create a fleet from which user applications are executed and streamed.

To set up and create a fleet

  1. Open the AppStream 2.0 console at https://console.aws.amazon.com/appstream2.

  2. Choose Get Started if you are new to the console, or Fleets from the left navigation pane. Choose Create Fleet.

  3. For Step 1: Provide Fleet Details, provide a fleet name, optional display name, and optional description. Choose Next.

  4. For Step 2: Choose an Image, choose an image that meets your needs and then choose Next.

  5. For Step 3: Configure Fleet, do the following:

    1. For Choose instance type, choose the instance type that meets the performance requirements of your applications.

    2. For Fleet type, choose the fleet type that suits your use case. The fleet type determines its immediate availability and how you pay for it.

    3. For Disconnect timeout, choose the time that a streaming instance should remain active after users disconnect. If users try to reconnect to the streaming session after a disconnection or network interruption within this time interval, they are connected to the previous session. Otherwise, they are connected to a new session with a new instance.

    4. For Minimum capacity, choose a minimum number of instances for your fleet based on the minimum number of expected concurrent users.

    5. For Maximum capacity, choose a maximum number of instances for your fleet based on the maximum number of expected concurrent users.

    6. For Scaling details, specify the scaling policies that AppStream 2.0 uses to increase and decrease the capacity of your fleet. Note that the size of your fleet is limited by the minimum and maximum capacity that you specified. For more information, see Fleet Auto Scaling for Amazon AppStream 2.0.

  6. For Step 4: Configure Network, do the following:

    1. To add internet access for fleet instances in a VPC with a public subnet, choose Default Internet Access. If you are providing internet access using a NAT gateway, leave Default Internet Access unselected. For more information, see Network Settings for Fleet and Image Builder Instances.

    2. Choose a VPC and two subnets with access to the network resources that your application needs. If you don't have a VPC or subnets, you can create them using the links provided and then click the refresh icons.

    3. For Security groups, select up to five security groups to associate with this fleet. Otherwise, the default security group for the VPC is used. If you need to create a security group, use the link provided and then click the refresh icon.

    4. For Active Directory Domain (Optional), choose the Active Directory and organizational unit (OU) for your streaming instance computer objects. Ensure that the network access settings you selected enable DNS resolvability and communication with your directory. For more information, see Using Active Directory Domains with AppStream 2.0.

  7. Choose Create.

    The initial status of your new fleet is Starting. You cannot associate the fleet with a stack and use it for streaming sessions until the status is Running.

Create a Stack

Set up and create a stack to control access to your fleet.

To set up and create a stack

  1. In the left navigation pane, choose Stacks, and then choose Create Stack.

  2. For Step 1: Stack Details, provide a stack name, optional display name, and optional description. For Fleet, choose the fleet to associate with your stack. If you need to create a fleet, use the link provided and then click the refresh icon. Choose Next.

  3. For Step 2: Enable Storage, you can enable persistent storage for the stack users by selecting Enable Home Folders. Choose Review.

  4. Choose Create.

    The status of your new stack is Active when it is available to work with from the console. You cannot use the stack for streaming sessions until the status is Running.

Provide Access to Users

After you create a stack with an associated fleet, you can provide access to users through the AppStream 2.0 user pool. For more information, see User Pool Administration.

Note that user pool users cannot be assigned to stacks with fleets that are joined to an Active Directory domain.

Clean Up Resources

You can stop your running fleet and delete your active stack to free up resources and to avoid unintended charges to your account. We recommend stopping any unused, running fleets.

Note that you cannot delete a stack with an associated fleet.

To clean up your resources

  1. In the navigation pane, choose Stacks.

  2. Select the stack and choose Actions, Disassociate Fleet.

  3. From Stack Details, open the Associated Fleet link to select the fleet.

  4. Choose Actions, Stop. It takes about 5 minutes to stop a fleet.

  5. When the status of the fleet is Stopped, choose Actions, Delete.

  6. In the navigation pane, choose Stacks.

  7. Select the stack and choose Actions, Delete.