Skip to content

Latest commit

 

History

History
87 lines (63 loc) · 11.3 KB

README.md

File metadata and controls

87 lines (63 loc) · 11.3 KB

MATLAB on Amazon Web Services

Step 1. Launch the Template

Click the Launch Stack button to deploy a standalone MATLAB desktop client on AWS. This will open the CloudFormation Create Stack screen in your web browser.

Region Launch Link
us-east-1 alt text
us-east-2 alt text
us-west-1 alt text
us-west-2 alt text
ca-central-1 alt text
eu-central-1 alt text
eu-west-1 alt text
eu-west-2 alt text
eu-west-3 alt text
eu-north-1 alt text
sa-east-1 alt text
me-south-1 alt text
ap-east-1 alt text
ap-south-1 alt text
ap-northeast-1 alt text
ap-northeast-2 alt text
ap-southeast-1 alt text
ap-southeast-2 alt text

Note: Creating a stack on AWS can take a few minutes.

Step 2. Configure the Cloud Resources

After you click the Launch Stack button above, the “Create stack” page will open in your browser where you can configure the parameters. It is easier to complete the steps if you position these instructions and the AWS console window side by side.

  1. Specify a stack name. This will be shown in the AWS CloudFormation console and must be unique within the AWS account.

  2. Specify and check the defaults for these resource parameters:

Parameter label Description
AWS EC2 Instance type The AWS instance type to use for MATLAB. See https://aws.amazon.com/ec2/instance-types for a list of instance types.
Instance Name Give your MATLAB virtual machine a name
Storage Size (GiB) Specify the size in GB of the root volume
IAM Role (Optional) Specify an IAM Role to associate with this instance.
VPC to deploy this stack to ID of an existing VPC in which to deploy this stack
Subnet List of existing subnets IDs
SSH Key Pair The name of an existing EC2 KeyPair to allow SSH access to all the instances. See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-key-pairs.html for details on creating these.
Allow RDP connections from The IP address range that will be allowed to connect to this instance from outside of the VPC. This field should be formatted as <ip_address>/<mask>. E.g. 10.0.0.1/32. This is the public IP address which can be found by searching for 'what is my ip address' on the web. The mask determines the number of IP addresses to include. A mask of 32 is a single IP address. This calculator can be used to build a specific range: https://www.ipaddressguide.com/cidr. You may need to contact your IT administrator to determine which address is appropriate.
Remote username Specify a user name. This will create a new user on the instance which can be used to sign in using Remote Desktop Protocol (RDP).
Remote password Enter a password for the username
Confirm remote password Confirm Password
License Manager for MATLAB connection string Optional License Manager for MATLAB string in the form <port>@<hostname>. If not specified, online licensing is used. If specified, the license manager must be accessible from the specified VPC and subnets. If the Network License Manager for MATLAB was deployed using the reference architecture, this can be achieved by specifying the security group of that deployment as the AdditionalSecurityGroup parameter, and by using the private hostname of the license manager host.
Additional security group to place instances in The ID of an additional (optional) Security Group for the instances to be placed in. Often the License Manager for MATLAB's Security Group.

Note: If you chose to associate an IAM role above you'll need to acknowledge that it may create IAM resources in the Capabilities before creating the stack.

  1. Click the Create Stack button. The CloudFormation service will start creating the resources for the stack.

    After clicking Create you will be taken to the Stack Detail page for your stack. Wait for the Status to reach CREATE_COMPLETE. This may take up to 10 minutes.

Step 3. Connect to the Virtual Machine in the Cloud

  1. Expand the Outputs section in the the Stack Detail page.
  2. Look for the key named RDPConnection and copy the corresponding public DNS name listed under value. For example: ec2-11-222-33-44.compute-1.amazonaws.com
  3. Launch any remote desktop client, paste the public DNS name in the appropriate field, and connect. On the Windows Remote Desktop Client you need to paste the public DNS name in the Computer field and click Connect.
  4. In the login screen that's displayed, use the username and password you specified while setting up the stack in Step 2.

Step 4. Launch MATLAB

Double-click the MATLAB icon on the virtual machine desktop to launch MATLAB. The first time you start MATLAB you will need to activate it. By default you will be asked to use your MathWorks Account to activate MATLAB. For other ways to activate MATLAB, see Configure MATLAB Licensing on the Cloud.

Note:It may take a few minutes for activation to complete and MATLAB to start. You will experience this delay only the first time you start MATLAB.

Additional Information

Delete Your Cloud Resources

Once you have finished using your stack, it is recommended that you delete all resources to avoid incurring further cost. To delete the stack, do the following:

  1. Log in to the AWS Console.
  2. Go to the AWS CloudFormation page and select the stack you created.
  3. Click the Actions button and click Delete Stack from the menu that appears.

Resources

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

  1. Security Group for SSH and RDP access
  2. EC2 Instance