Tableau Desktop On Amazon Appstream2.0
Tableau Desktop On Amazon Appstream2.0
Tableau Desktop On Amazon Appstream2.0
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not
Amazon's, in any manner that is likely to cause confusion among customers, or in any manner that disparages or
discredits Amazon. All other trademarks not owned by Amazon are the property of their respective owners, who may
or may not be affiliated with, connected to, or sponsored by Amazon.
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Table of Contents
Abstract and overview ......................................................................................................................... i
What is Amazon AppStream 2.0? ................................................................................................. 1
How does AppStream 2.0 fit with Tableau? ................................................................................... 1
Tableau Desktop ................................................................................................................ 1
Tableau Prep Builder .......................................................................................................... 1
Content Migration Tool ....................................................................................................... 1
Data residency ................................................................................................................... 2
Considerations ................................................................................................................................... 3
Procedures ........................................................................................................................................ 4
Step 1: Create your image ........................................................................................................... 4
Step 2: Customize your image ..................................................................................................... 6
Step 3: Create your fleet ........................................................................................................... 10
Step 4: Create your stack .......................................................................................................... 14
Step 5: Manage users ............................................................................................................... 15
Single sign-on with SAML 2.0 ............................................................................................ 15
Active Directory (Optional) ................................................................................................ 15
User pool ........................................................................................................................ 16
Licensing ......................................................................................................................................... 17
LBLM and ATR (recommended) .................................................................................................. 17
Master key approach ........................................................................................................ 18
Alternative approach ........................................................................................................ 18
Security ........................................................................................................................................... 19
Conclusion ....................................................................................................................................... 20
Contributors .................................................................................................................................... 21
Document history ............................................................................................................................. 22
Notices ............................................................................................................................................ 23
AWS glossary ................................................................................................................................... 24
iii
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
What is Amazon AppStream 2.0?
This guide provides best practices for deploying Tableau Desktop to Amazon AppStream 2.0 as well as
instructions to launch and configure the AppStream 2.0 resources needed for this use case.
AppStream 2.0 is built on Amazon Web Services (AWS), so you benefit from a data center and network
architecture designed for the most security-sensitive organizations. Each user has a fluid and responsive
experience because your applications run on virtual machines optimized for specific use cases, and each
streaming session automatically adjusts to network conditions.
Tableau Desktop
Tableau Server already has web-edit capabilities, but a gap exists between the features available in web-
edit compared to Tableau Desktop. If you want to provide the full Tableau Desktop experience to your
content creators but want to avoid installing software on workstations, AppStream 2.0 is designed to
provide a solution.
1
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Data residency
Data residency
The previous use cases center on operating systems and features, but what if access to the data itself is
the challenge? For example, what if your data must live in the AWS eu-west-1 Region, but your content
creators work outside of that Region? Using AppStream 2.0, content creators can work with the data
without the need to bring it down to Tableau Desktop on their machines.
If Tableau Desktop is running within AWS and delivered to users through AppStream 2.0, your data can
remain centralized, and applications can interact with data stored in Amazon Simple Storage Service
(Amazon S3), Amazon Relational Database Service (Amazon RDS), and other services with low latency.
2
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
3
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 1: Create your image
Procedures
Steps
• Step 1: Create your image (p. 4)
• Step 2: Customize your image (p. 6)
• Step 3: Create your fleet (p. 10)
• Step 4: Create your stack (p. 14)
• Step 5: Manage users (p. 15)
4
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 1: Create your image
5
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 2: Customize your image
1. In the AppStream 2.0 console, select the image that you just created in the Image Builder list, and
choose Connect.
2. In the Local User tab, choose Administrator so you can install Tableau Desktop.
Note
These steps might vary depending on your Tableau licensing. This guide assumes you have
LBLM as your licensing option. If not, see the Licensing section later in this guide.
3. After logging in, download the installer for Tableau Desktop, but don’t start the installer wizard.
Instead, use the following installation script so you can customize some user settings:
The script tells Tableau Desktop that users are activated using LBLM through their Tableau server.
When users open Tableau Desktop for the first time, they are prompted to enter their Tableau Server
credentials. This activates their desktop license for 14,400 seconds (four hours).
6
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 2: Customize your image
For information about licenses that expire during a session and best practices for AppStream 2.0 and
the authorization-to-run (ATR) service duration, refer to Login-based License Management in the
Tableau documentation.
Note
The subnet in which the AppStream 2.0 instances and image builders reside must be able to
access the Tableau service instance. For more information about configuring VPCs, refer to
VPCs and subnets.
4. After Tableau Desktop is installed, open the Image Builder and launch the AppStream 2.0 Image
Assistant, where you can make Tableau Desktop available in the AppStream 2.0 application catalog.
5. In the Image Assistant, choose Add App, and then navigate to the Tableau Desktop executable file; for
example, C:\Program Files\Tableau\Tableau {version}\bin\tableau.exe.
7
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 2: Customize your image
8
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 2: Customize your image
After disconnecting from the Image Builder, wait 20 to 30 minutes for your new image to become
available in the Image Registry.
9
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 3: Create your fleet
1. In AppStream 2.0, open the Fleets page, and choose Create Fleet
10
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 3: Create your fleet
Select the custom image you created from the image list
5. On the Configure Fleet page, choose the stream.standard.large instance type (the same as you did
with the Image Builder).
11
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 3: Create your fleet
12
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 3: Create your fleet
The Always-On option means instances are available and ready whenever users try to access
Tableau Desktop. However, this option also means that you pay for instances to be available at
all times, even when users are not streaming from the fleet. The On-Demand option is better if you
are not sure how often users will need Tableau Desktop, as it spins up new instances as needed.
This means users must wait a couple of minutes when they first access Tableau Desktop for it to
spin up the fleet instance. This option also means a lower cost to maintain the fleet.
b. In the User Session details section, specify the different timeouts. Set the maximum session
duration and disconnect timeout to 240 minutes to match the four-hour ATR duration used during
the Tableau Desktop installation.
c. Provide details for fleet capacity, including the minimum and maximum number of instances
available in your fleet, and whether to stream the entire desktop or just the Tableau Desktop
application for users. For information to help you determine configuration choices, refer to Fleet
Auto Scaling for Amazon AppStream 2.0 in the AWS documentation.
6. On the Configure Network page, make the following additional updates to configure the network
settings of your fleet:
13
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 4: Create your stack
1. From the navigation pane, go to the Stacks page and choose Create Stack.
2. On the Stack Details page, provide a name for the stack, and select the fleet you just created from the
Fleet list.
3. Choose Next.
4. On the Enable Storage page, choose to enable or disable home folders.
If enabled, home folders provide Amazon S3-backed file storage that persists from session to session.
When users save files to their home folder, those files are available the next time they start a session,
and they can publish their content to the Tableau Server when they’re ready. You can also enable
access through Google Drive and OneDrive storage connectors, so your users can easily pull their files
from the cloud.
5. Choose Next to continue.
14
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Step 5: Manage users
6. On the User Settings page, choose if users can copy and paste from their clipboard and upload and
download files from this instance. Also select the check box to enable application settings persistence
if you want AWS to save customizations and settings for the next time users start a session.
For instructions on how to set up SAML 2.0 with AppStream 2.0, refer to Setting up SAML.
15
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
User pool
User pool
The AppStream 2.0 user pool provides a simplified way to manage user access to applications through a
persistent portal for each AWS Region. This feature is a built-in alternative to user management through
Active Directory and SAML 2.0 federation. As a best practice, use user pools when Active Directory is not
required, for testing purposes, or for deployments with 50 or fewer users.
For more information, refer to Using Active Directory with AppStream 2.0 and Single Sign-on Access
(SAML 2.0).
16
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
LBLM and ATR (recommended)
Licensing
When using a non-persistent solution such as AppStream 2.0 to host Tableau Desktop, you must activate
the license key. Activation options depend on how you purchased Tableau licenses.
To use this option, your Tableau Server’s license key must allow for LBLM. You can enable the LBLM
feature using the following Tableau Services Manager (TSM) command:
For environments that meet the LBLM requirements, a typical user flow with an ATR duration of four
hours starts by starting the session and logging in to Tableau Server, which is activated for four hours.
Next, one the following scenarios occur:
• If users disconnect from their session and then reopen the session more than four hours later, when
they log in to Tableau Server, the session is active for another four hours.
• Assuming the fleet’s disconnect timeout value matches the ATR duration, if users disconnect from
the session but open it again within that four-hour window, the instance remains active, and they can
access Tableau Server without logging in again.
• Assuming the maximum session duration matches the ATR duration of four hours, if users reach the
end of the four hours, they are prompted to save their work before the session closes. Then they can
open a new session and log back in to Tableau Server, if desired.
You must configure ATR settings when using LBLM. Tableau Desktop comes with copy protection to
prevent users from installing or activating Tableau Desktop on a virtual machine and simply cloning it
17
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Master key approach
for other users. This means that when an instance is terminated, even if you spin up a new one, it has
a different hardware profile that doesn’t match the settings from the last session. For this reason, you
must enable ATR and set the duration to match the fleet’s maximum session duration.
Alternative approach
If LBLM is not available, and you don’t have a master key, an architecture is available for using individual
user-based desktop/creator product keys, although this process requires more manual work than the
other approaches. AWS must be able to access a mapping of users to product keys, for example a
database table. Rows in the table are users and their Tableau Desktop license keys. The following two
session scripts are also required:
• Startup script — When users sign in, the script fetches their license key from the database table and
uses it to activate Tableau Desktop.
• Termination script — When user sessions terminate, the script runs the deactivate command to
free up the license key. This step is required because all Tableau licenses have a limited number of
activations (to prevent users from activating the same license key on many machines). By deactivating
before the instance terminates, the license key can be reused the next time the user logs in. For more
information, refer to Deactivate the product key in the Tableau documentation.
Note that this approach is not recommended because it assumes the termination script always runs
before the instance is terminated. If something causes your instances to terminate unexpectedly and the
script is unable to complete, the license activations counter does not decrement. This means that you will
eventually see license activation errors for those users, and the only resolution is through the Tableau
support team (there is no programmatic way). Although this scenario is unlikely, the potential challenges
make this a less desirable approach.
18
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Security
For information about how to secure your AppStream 2.0 resources, refer to Security in Amazon
AppStream 2.0.
19
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Conclusion
After following this guide, you should understand how to deploy Tableau Desktop on AppStream 2.0,
and what to consider during deployment.
20
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Contributors
Contributors to this document include:
21
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Document history
To be notified about updates to this whitepaper, subscribe to the RSS feed.
Initial publication (p. 22) Whitepaper first published. November 11, 2021
Note
To subscribe to RSS updates, you must have an RSS plug-in enabled for the browser that you are
using.
22
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
Notices
Customers are responsible for making their own independent assessment of the information in this
document. This document: (a) is for informational purposes only, (b) represents current AWS product
offerings and practices, which are subject to change without notice, and (c) does not create any
commitments or assurances from AWS and its affiliates, suppliers or licensors. AWS products or services
are provided “as is” without warranties, representations, or conditions of any kind, whether express or
implied. The responsibilities and liabilities of AWS to its customers are controlled by AWS agreements,
and this document is not part of, nor does it modify, any agreement between AWS and its customers.
© 2021 Amazon Web Services, Inc. or its affiliates. All rights reserved.
23
Tableau Desktop on Amazon
AppStream 2.0 AWS Whitepaper
AWS glossary
For the latest AWS terminology, see the AWS glossary in the AWS General Reference.
24