Deploy HA Gateways with CloudFormation

The following guide shows an example of how to quickly create a pair of StrongDM gateways using AWS's CloudFormation. The only requirement is a StrongDM admin token with the ability to list and create gateways. When creating the admin token, check the Relays - List and Relays - Create permissions.

Procedure

  1. Navigate to your AWS console.

  2. Search for and open the CloudFormation service.

  3. Click Create stack.

  4. Choose Upload a template file.

  5. Upload the below YAML file.

  6. Follow on-screen instructions.

Parameters

When launched, this stack will prompt you for the following parameters:

  1. PublicSubnet1: Designates the subnet in which to launch the EC2 instance. This subnet needs to be public.

  2. PublicSubnet2: Designates the subnet in which to launch a second EC2 instance for high availability. This subnet needs to be public.

  3. VPC: Select the VPC that the subnet above belongs to. This VPC needs DNS hostnamesarrow-up-right enabled for the gateway to properly register.

  4. SDMListenPort: This port number will be used for clients to connect to the this gateway.

  5. SDMAdminToken: Input a StrongDM admin token that has the Relays / Create permission.

Resources

This template will create the following resources

  1. EC2 Instance Gateway One

    • Instance type t3.medium

    • Operating system Amazon Linux 2

  2. EC2 Instance Gateway Two

    • Instance type t3.medium

    • Operating system Amazon Linux 2

  3. Security group

    • This security group allows connections from StrongDM clients into your VPC

    • The SDMlistenPort specified during creation time will be open from anywhere

Outputs

This template exports the EC2 security group so that it may be used as an input rule for your databases and servers in other templates.

CloudFormation Template

circle-info

If your organization uses a control plane located in a region other than the default, add a --region yourdomain flag to the install commands, such as:

Last updated

Was this helpful?