reference deployment

Amazon SageMaker for Tableau

Connect Tableau with Amazon SageMaker machine learning models to power predictive analytics

This Quick Start sets up an Amazon Web Services (AWS) architecture that allows you to integrate Amazon SageMaker machine learning (ML) models in Tableau's calculated fields. The serverless application it deploys is based on Tableau's analytics extension framework. With it, you can connect SageMaker ML models to Tableau workbooks in both Tableau Desktop and Tableau Server.

This Quick Start uses AWS CloudFormation templates to deploy a REST API managed by Amazon API Gateway and Lambda functions to connect Tableau and SageMaker. With Amazon Cognito, it also provides a user authentication flow based on AWS best practices.


InterWorks Inc. and Tableau logos

This Quick Start was developed by InterWorks Inc. in collaboration with AWS and Tableau. InterWorks and Tableau are AWS Partners.

  •  What you'll build
  • This Quick Start sets up the following:

    • In the authentication group:
      • Amazon Cognito to provide a managed portal for sign-up and sign-in of connector users and a user pool for authentication.
      • An Amazon API Gateway Lambda authorizer to connect API Gateway to the Amazon Cognito user pool.
    • Amazon API Gateway with REST API with endpoints (GET /info and POST /evaluate) to facilitate connection between Tableau and Amazon SageMaker.
    • A virtual private cloud (VPC), configured according to AWS best practices, to provide you with your own virtual network on AWS.*
    • In the VPC:
      • Two Lambda functions, one for each REST API endpoint.
      • A VPC endpoint connected to Amazon SageMaker.

    *The template that deploys the Quick Start into an existing VPC skips the components marked by asterisks and prompts you for your existing VPC configuration.

  •  How to deploy
  • To deploy Amazon SageMaker for Tableau, follow the instructions in the deployment guide. The deployment process takes 15 to 30 minutes and includes these steps:

    1. If you don't already have an AWS account, sign up at, and sign in to your account.

    2. Launch the Quick Start by choosing from the following options. Before you create the stack, select the Region from the top toolbar.

    3. Test the deployment.

    Amazon may share user-deployment information with the AWS Partner that collaborated with AWS on this solution.  

  •  Cost and licenses
  • You are responsible for the cost of the AWS services and any third-party licenses used while running this Quick Start reference deployment. There is no additional cost for using the Quick Start. A license is required to use Tableau Server and Tableau Desktop.

    The AWS CloudFormation templates for this Quick Start include configuration parameters that you can customize. Some of these settings, such as instance type, affect the cost of deployment. For cost estimates, see the pricing pages for each AWS service you use. Prices are subject to change.

    Tip: After you deploy the Quick Start, create AWS Cost and Usage Reports to track costs associated with the Quick Start. These reports deliver billing metrics to an Amazon Simple Storage Service (Amazon S3) bucket in your account. They provide cost estimates based on usage throughout each month and aggregates the data at the end of the month. For more information about the report, see What are AWS Cost and Usage Reports?