This repository shows how to deploy a network license manager for MATLAB®, MATLAB Parallel Server®, and other Mathworks® products, running on a Linux® EC2® instance in your AWS® account. For information about the architecture of this solution, see Learn about Architecture.
You need:
-
An Amazon® Web Services (AWS) account with required permissions. For details, see Example IAM Policy.
-
An SSH key pair for your AWS account in your chosen region. Create an SSH key pair if you do not already have one. For instructions, see the AWS documentation.
-
A valid MATLAB license. For details, see License Requirements for MATLAB on Cloud Platforms.
-
Administrator status for the network license you want to use.
You are responsible for the cost of the AWS services used when you create cloud resources using this guide. Resource settings, such as instance type, 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.
To view instructions for deploying the Network License Manager for MATLAB reference architecture, select a MATLAB release:
Release |
---|
R2024b |
R2024a |
R2023b |
R2023a |
R2022b |
R2022a |
R2021b |
R2021a |
R2020b |
R2020a |
R2019b |
R2019a_and_older |
- Security Group (AWS::EC2::SecurityGroup): The security group defines the ports that are opened to the instance:
- 22: Required for SSH access to the cluster nodes.
- 443: Required for HTTPS access to the dashboard.
- 27000-27010: Required for communication from MATLAB and MATLAB workers to the network license manager for MATLAB.
- Internal Security Group Traffic Rule (AWS::EC2::SecurityGroupIngress): Opens access to network traffic between all instances internally.
- Elastic IP: An elastic IP is created so that the server can be restarted and keep the same IP and MAC address to ensure the license file downloaded from MathWorks remains valid.
- Network license manager instance (AWS::EC2::Instance): An EC2 instance for the license server.
You can copy the AMI for a certain MATLAB version to a target region of your choice.
- In the Releases folder of this repository, choose the MATLAB release that you want to copy. Download and open the CloudFormation template .json file for that release.
- Locate the Mappings section in the CloudFormation template. Copy the AMI ID for one of the existing regions, for example, us-east-1.
- To copy the AMI to your target region, follow the steps in the AWS documentation.
- In the Mappings section of the CloudFormation template, add a new RegionMap pair corresponding to your target region. Insert the new AMI ID of the AMI in the target region.
- In your AWS Console, change your region to your target region. In the CloudFormation menu, select the Create Stack > With new resources option. Provide the modified CloudFormation template.
You can now deploy the AMI in your target region using the AMI that you copied.
To request assistance or additional features, contact MathWorks Technical Support.
Copyright 2018-2024 The MathWorks, Inc.