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
Navigate to your AWS console.
Search for and open the CloudFormation service.
Click Create stack.
Choose Upload a template file.
Upload the below YAML file.
Follow on-screen instructions.
Parameters
When launched, this stack will prompt you for the following parameters:
PublicSubnet1: Designates the subnet in which to launch the EC2 instance. This subnet needs to be public.
PublicSubnet2: Designates the subnet in which to launch a second EC2 instance for high availability. This subnet needs to be public.
VPC: Select the VPC that the subnet above belongs to. This VPC needs DNS hostnames enabled for the gateway to properly register.
SDMListenPort: This port number will be used for clients to connect to the this gateway.
SDMAdminToken: Input a StrongDM admin token that has the Relays / Create permission.
Resources
This template will create the following resources
EC2 Instance Gateway One
Instance type t3.medium
Operating system Amazon Linux 2
EC2 Instance Gateway Two
Instance type t3.medium
Operating system Amazon Linux 2
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
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: