Skip to content

Install in cloud with installer

guideinstall-cloud-installer

Install Platforma in AWS or Google Cloud with the installer of MiLaboratories: the CloudFormation stack or install.sh in Cloud Shell.

Other ways: Install in cloud with Terraform.

The installer makes the cluster and all its cloud parts and installs Platforma, from a few answers: you do not need to know KubernetesKubernetes — A system that runs programs on a group of machines (a cluster). Platforma can run in a Kubernetes cluster. Glossary or Terraform. On AWS, the installer is a CloudFormation stack that you create in the AWS console. On Google Cloud, it is the script install.sh, which you run in Cloud Shell. The Terraform modulesTerraform modules — The Terraform code that MiLaboratories provides to install Platforma. The cloud-specific Terraform modules make the cluster and its cloud parts in AWS or Google Cloud; the cloud-agnostic Terraform modules install Platforma into the cluster. Glossary are the other installation path in these clouds: for which of the two fits, see Installation paths, and for the modules, see Install in cloud with Terraform.

What you get

The installer for AWS is one CloudFormation stack. You give it a domain, the Route 53 zone of the domain and the license key, and it makes all the infrastructure in the AWS account and installs Platforma:

  • a VPC in three availability zones with one NAT gateway, or the subnets of a VPC that exists;
  • an EKS cluster with a system node and a node of 16 CPUsCPUs — The compute units of a node or of the server, as Kubernetes and the operating system count them. A job asks for a number of CPUs. The cloud quotas call them vCPUs. Glossary and 64 GiB for the BackendBackend — The server program of Platforma. It keeps the projects, runs the Blocks and starts jobs. Glossary, which run all the time. The node groups for jobsjob — One run of a tool on data. The Backend starts jobs on the server where it runs, or in a Kubernetes cluster. Glossary scale from zero: a job node starts only when a job needs it. Where the region offers GPUs, the stack also adds GPU node groups, which also scale from zero;
  • an S3 bucket as the primary storageprimary storage — The bucket (Amazon S3 or Google Cloud Storage) or folder where Platforma keeps all results and uploaded files. Glossary, which the Backend reads and writes with its cloud identity, with no access keys;
  • an Amazon EFS file system as the workspaceworkspace — The storage where the Backend and all jobs keep the working files of running jobs. The Backend and the jobs use it at the same time. In Kubernetes, it is a network file system; in Single Server mode, it is a folder on the server. Glossary, and EBS volumes for the database and the logs of the Backend;
  • the entry pointentry point — The way in to the Backend from outside the cluster, a load balancer or an Ingress with a DNS name. It usually ends TLS and sends the traffic to the Backend pod. Glossary: an Application Load Balancer with an ACM certificate for the domain, and the DNS record of the domain in the Route 53 zone. ACM renews the certificate;
  • the job queues and the autoscaler, and Platforma itself. The installer installs Platforma with its own Helm chart, and the stack parameters set all its values.

Each installation has an administrator login, platforma, also when you set no sign-in providersign-in provider — A configured way for users to sign in to the Backend: single sign-on (SSO), LDAP or a static list of users. One Backend can have more than one. Glossary. The stack makes its password and keeps it in AWS Systems Manager Parameter Store: the outputs AdminUsername and AdminPasswordSSMConsole give the login and a link to the password. Users sign insign in — To show the Backend who you are, with a sign-in provider or a single-user token. The verb is "sign in"; the noun and the adjective are "sign-in". Glossary with the sources that you set in the stack parameters: Google, Microsoft Entra ID, LDAPLDAP — The directory of users of a company. The Backend can check logins and passwords in it. Glossary or a static list of usersstatic list of users — A sign-in provider that is a file with the logins and the password hashes of the users, in the htpasswd format. The Backend reads it again when it changes. Glossary.

The deployment size sets the largest job and how many jobs run at the same time:

Deployment size Largest job Recommended vCPU quota Minimum vCPU quota
small (default) 62 CPUs, 484 GiB 400 190
medium 94 CPUs, 733 GiB 950 410
large 94 CPUs, 733 GiB 1,900 756
xlarge 126 CPUs, 973 GiB 3,400 1,700

A larger size lets more jobs run at the same time; it does not cost more while the job nodes are empty. For the time and the cost of the analyses, see Size and cost of an analysis.

Before you start

Prepare these items:

  • A domain and its public DNS zone in the same cloud: a Route 53 hosted zone on AWS, a Cloud DNS zone in the same project on Google Cloud. Users type the domain in the Desktop AppDesktop App — The program that each user installs on their own computer to work with Platforma. It is a client of the Backend. Glossary, for example platforma.example.com. The parent zone must delegate to this zone, because the cloud checks the domain through it before it gives the certificate. Check the delegation with dig +short NS example.com: the answer must show the name servers of the zone. The Desktop App needs a valid certificate, so an IP address or a self-signed certificate does not work.
  • The license key. See License.
  • The Desktop App on your computer, to connect at the end.
  • Rights. An administrator of the AWS account can install. When you have fewer rights, attach the three policy documents deployer-policy-1-infra.json, deployer-policy-2-services.json and deployer-policy-3-iam.json of the AWS permissions reference to the user or role that creates the stack. Replace their placeholders <ACCOUNT_ID>, <REGION>, <CLUSTER_NAME> and <HOSTED_ZONE_ID> first.
  • The vCPU quota of the region. In the Service Quotas console, open Running On-Demand Standard instances (L-1216C47A) and read the applied value. Choose the largest deployment size that the quota allows, or ask AWS for more. When the quota is less than the minimum of the size, the installation of Platforma stops with an error.

Steps

  1. Open the CloudFormation console in the region where Platforma will run, and choose Create stack → With new resources (standard). In Specify template, choose Amazon S3 URL and paste the template of the last release:

    https://platforma-cloudformation.s3.eu-central-1.amazonaws.com/cloudformation-eks-1-35.yaml
  2. Fill the parameters. Give the stack a name, for example platforma. A first installation needs only these parameters; all others have defaults:

    Parameter What it sets Default
    Domain name (DomainName) The domain that users type in the Desktop App Necessary
    Route53 hosted zone ID (HostedZoneId) The zone of the domain, for example Z0123456789ABCDEF Necessary
    Platforma license key (LicenseKey) The license key Necessary
    Deployment size (DeploymentSize) The largest job and how many jobs run at the same time small
    Google, Entra ID or LDAP parameters Sign-in of the users with a sign-in provider Empty: only the administrator login platforma
    Admin logins (AdminUsers) The logins that get the administrator roleadministrator role — The role in the Backend that can read and change the data of all users and run the pl-cli administrator commands. The operator sets rules that give it to users by login, group or attribute. Glossary: regular expressions that must match the whole login, separated with ;. Escape a dot: alice@example\.com Empty
    Enable MiLaboratories demo data librarydata library — A folder or bucket with input data of the company. Users select files from it in the Desktop App. Platforma only reads it. Glossary (EnableDemoLibrary) The read-only demo data of MiLaboratories true

    The other parameters set, for example, a VPC that exists, a static list of users, the data libraries of the company, GPU nodes and a fixed version of Platforma: see Stack parameters. For the sign-in providers and the administrator role, see Authentication and Users and roles.

  3. Create the stack. On the last page, accept that the stack makes IAM resources, check the domain, the zone, the license key and the sign-in parameters, and choose Submit.

    The stack takes about 20 minutes: it makes the infrastructure, then installs the cluster services and Platforma. Result: the status of the stack is CREATE_COMPLETE.

  4. Read the outputs of the stack, on the tab Outputs: PlatformaUrl is the address for the Desktop App, and AdminUsername and AdminPasswordSSMConsole give the administrator login (platforma) and a link to its password. For all outputs, see Stack outputs.

    To read the administrator password, open the link of AdminPasswordSSMConsole and choose Show, or run:

    Terminal window
    aws ssm get-parameter --name /<ClusterName>/platforma/admin-password \
    --with-decryption --query Parameter.Value --output text
  5. Wait for DNS. The stack writes the DNS record of the domain by itself. The load balancer and the record need 1 to 3 more minutes after the stack is complete. Result: dig +short platforma.example.com gives an address.

  6. Verify the installation (see Verify the installation) and connect the Desktop App with the value of PlatformaUrl and the administrator login.

  7. Save the parameters that you chose. You need them again for each update and upgrade. The stack keeps them: see them on the tab Parameters of the stack, or run:

    Terminal window
    aws cloudformation describe-stacks --stack-name <stack name> \
    --query 'Stacks[0].Parameters' --output table

    The stack does not show the values of the secret parameters: it shows ****. These are LicenseKey, HtpasswdContent, LdapSearchPassword, GoogleClientSecret, and the access keys and secret keys of the data libraries. An update keeps them, but keep these values in the secret store of the company.

When the stack stops in CREATE_IN_PROGRESS for more than 20 minutes, open Certificate Manager: a certificate in PENDING_VALIDATION means a wrong zone ID, or a parent zone that does not delegate to the zone. When the stack fails, the logs of the two CodeBuild projects of the outputs give the reason.

Maintain an installer installation

To upgrade the installation or to change its settings, run the installer again: see Update an installer installation. The other Maintain pages show the steps for the installers in their tabs AWS installer and Google Cloud installer:

Next