Skip to main content

Overview

This guide covers deploying SGP in an AWS account. SGP AWS infrastructure is defined by terraform modules managed by Scale.
SGP is deployed jointly with Scale engineering. Scale provides everything under “The following from Scale” in Prerequisites and stays involved for upgrades and ongoing operation. Contact your Scale team before you start.

Prerequisites

  • Access to an AWS account with sufficient permissions to create resources
  • The following tools installed:
  • The following from Scale:
    • The SGP AWS Infrastructure Terraform modules
    • A workspace_id and registration_token unique to your deployment
    • The bootstrap-helm folder: install.sh and the system-manager-dependencies chart it installs
    • The consolidated version of SGP to install
  • A new application configured in your identity provider to authenticate to the SGP platform (SAML or OIDC) (optional)
  • A custom domain for your deployment (optional)

Installation

Step 1: Prepare Terraform Root Module

In a new directory, create a .tf file to invoke the SGP AWS infrastructure Terraform modules. Reference the egp-hybrid-cloud-customer-deployment module as the entrypoint for the SGP infrastructure.
Each packs entry in desired_state_json names a System Manager pack; get the pack list for your install from your Scale team. System Manager reads desired_state_json only on first install, while its desired state is empty; after that, change packs in the System Manager GUI or API.

Step 2: Provision Infrastructure via Terraform

Run the following commands in the same directory as the previous step’s .tf file. Terraform calls Scale’s control plane during plan and apply, so the machine running it needs HTTPS access to https://control.egp.scale.com.
This step may take significant time due to resource creation dependencies
Unless you import a certificate with the ssl_cert_*_path arguments in Step 1, the first apply will likely fail with this error:
The listener needs an issued ACM certificate, validated through DNS. For a <workspace_id>.workspace.egp.scale.com domain, Scale creates the DNS records: wait until ACM shows the certificate as issued, then re-run terraform apply. For a custom domain, first create these records with your DNS provider:
  • <domain> and *.<domain>: CNAME to the load balancer’s DNS name, from terraform output -raw load_balancer_dns (use an alias record if <domain> is the apex of its DNS zone)
  • The certificate’s validation CNAME, whose name and value this command prints:

Step 3: Bootstrap the Cluster

Export the values install.sh and sgpctl need. Run these in the same directory as the Step 1 .tf file, so terraform output reads its state:

Configure EKS access

The IAM identity that created the cluster in Step 2 has cluster admin access, and so do the roles in roles_to_access_kubeapi from Step 1.

Allowlist your IP (if needed)

The EKS API endpoint accepts connections from Scale’s addresses and from the eks_additional_access_cidrs in Step 1, or only from access_cidrs when omit_egp_control_plane = true. To run the commands below from your machine, include its IP there.

Install the prerequisites with install.sh

Run the install.sh script to install what System Manager needs in the cluster:
  • The Secrets Store CSI driver and its AWS provider
  • The sgp-system-manager and spicedb namespaces
  • The spicedb-config secret, holding the connection string you exported and the preshared key from the SpiceDB secret Terraform created in AWS Secrets Manager
install.sh reads that secret with your AWS credentials. It does not install System Manager. Run it from the bootstrap-helm folder, because it installs the system-manager-dependencies chart from there.
If install.sh fails, fix the cause and run it again: the exports are still set. To run it again after it has succeeded, or from a new shell, first repeat the exports above from the Step 1 directory.

Install System Manager with sgpctl

Install SGP System Manager with sgpctl, using the consolidated version from Scale. sgpctl installs the chart from the scale-egp-charts Helm repository, so add it first. It also fetches a license key and registry credentials from Scale’s control plane, so the machine running it needs HTTPS access to https://control.egp.scale.com. <aws_account_id> is the AWS account Terraform deployed into.
System Manager is the deployment orchestrator for the SGP platform. It deploys the packs listed in desired_state_json from Step 1.

Step 4: Verify the Deployment

Wait for all services to be ready:

Step 5: Configure Identity Provider

SAML Configuration

In your Identity Provider, configure a new SAML application with the following settings:
  • Service Entity ID: https://auth.<domain>
  • Redirect URI: https://auth.<domain>/dashboard/org/saml/callback
Modify the configuration scale-egp-<workspace_id>/identity-service-saml-secrets (either via System Manager or directly in AWS Secrets Manager):

OIDC Configuration

In your Identity Provider, configure a new OIDC application with the following settings:
  • Redirect URI: https://auth.<domain>/dashboard/org/oidc/callback
Modify the configuration scale-egp-<workspace_id>/identity-service-oidc-secrets (either via System Manager or directly in AWS Secrets Manager) with the following JSON:
After modifying the secret, restart the sgp-system-manager deployment to apply the changes.

Accessing the Platform

If all goes smoothly, you should be able to navigate to the SGP platform at https://<workspace_id>.workspace.egp.scale.com (or your custom domain) and authenticate via the configured identity provider.