Skip to content
Stand up a MATLAB desktop with Remote Desktop access using AWS CloudFormation
Branch: master
Clone or download
Latest commit 8baf8ec Nov 18, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
images First commit May 29, 2018
releases Added MATLAB R2019b Nov 4, 2019 First commit May 29, 2018 Update Nov 18, 2019

MATLAB on Amazon Web Services


Before starting, you will need the following:

  • A MATLAB® license that is current on Software Maintenance Service (SMS). For more information, see Configure MATLAB Licensing on the Cloud.
  • An Amazon Web Services™ (AWS) account.
  • An SSH Key Pair for your AWS account in the appropriate region. For more information, see Amazon EC2 Key Pairs.


You are responsible for the cost of the AWS services used when you create a cluster using this guide. Resource settings, such as instance type, will affect the cost of deployment. For cost estimates, see the pricing pages for each AWS service you will be using. Prices are subject to change.


The following guide will help you automate the process of running the MATLAB desktop on Amazon Web Services and connect to it using the Remote Desktop Protocol (RDP). The automation is accomplished using an AWS CloudFormation template. The template is a JSON file that defines the resources needed to run MATLAB on AWS. For information about the architecture of this solution, see Architecture and Resources. For information about templates, see AWS CloudFormation Templates.

Prepare your AWS Account

  1. If you don't have an AWS account, create one at by following the on-screen instructions.
  2. Use the regions selector in the navigation bar to choose the US East (N. Virginia) or EU (Ireland) region where you want to deploy MATLAB.
  3. Create a key pair in that region. The key pair is necessary as it is the only way to connect to the instance as an administrator.
  4. If necessary, request a service limit increase for the Amazon EC2 instance type or VPCs. You might need to do this if you already have existing deployments that use that instance type or you think you might exceed the default limit with this deployment.

Choose a Deployment Option

To view instructions for deploying the MATLAB Parallel Server reference architecture, select a MATLAB release:

Architecture and Resources

MATLAB on AWS Reference Architecture

Deploying this reference architecture sets up a single AWS EC2 instance containing Linux and MATLAB, a private VPC with an internet gateway, a private subnet and a security group that opens the appropriate ports for SSH and RDP access.

To make deployment easy we have prepared an Amazon Machine Image (AMI) running Ubuntu 16.04 with pre-installed drivers. The AMI contains the following software:

  • MATLAB, Simulink, Toolboxes, and support for GPUs.
  • Add-Ons: Neural Network Toolbox Model for AlexNet Network, Neural Network Toolbox Model for GoogLeNet Network, and Neural Network Toolbox(TM) Model for ResNet-50 Network

The AMI is currently available in the US East (N. Virginia) and EU West (Ireland) regions only.


The following resources will be created as part of the CloudFormation Stack.

  1. VPC w/Internet Gateway
  2. Subnet
  3. Security Group for SSH and RDP access
  4. EC2 Instance

Enhancement Request

Provide suggestions for additional features or capabilities using the following link:

Technical Support


You can’t perform that action at this time.