Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

User and Instance Metadata for Amazon AppStream 2.0 Fleets

Focus mode
User and Instance Metadata for Amazon AppStream 2.0 Fleets - Amazon AppStream 2.0

AppStream 2.0 fleet instances have user and instance metadata available through Windows environment variables. You can use the following environment variables in your applications and scripts to modify your environment based on the fleet instance details.

Environment Variable Context Description
AppStream_Stack_Name User The name of the stack from which the streaming session started.
AppStream_User_Access_Mode User The access mode used to manage user access to the stream. The available values are custom, userpool, or saml.
AppStream_Session_Reservation_DateTime User The date and time when the user's streaming session started.
AppStream_UserName User The user name associated with the user.
AppStream_Session_ID User The session identifier for the user's streaming session.
APPSTREAM_SESSION_CONTEXT Machine Contains the parameters passed to your streaming application when a session is started. For more information, see Session Context in Amazon AppStream 2.0.
Note

This environment variable is only available after the first application launch.

AppStream_Image_Arn Machine The ARN of the image that was used to create the streaming instance.
AppStream_Instance_Type Machine The streaming instance's type. For example, stream.standard.medium.
AppStream_Resource_Type Machine The type of AppStream 2.0 resource. The value is either fleet or image-builder.
AppStream_Resource_Name Machine The fleet's name.
PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.