This is a reference project to demonstrate the launch of Rigor agents, with supporting infrastructure, on AWS ECS using Terraform.
This terraform project will create the following resources:
- An ECS Custer
- 2 ECS services:
- The Rigor Agent
- Watchtower DAEMON
- An Autoscaling group with launch configuration
- Cloudwatch log groups for each service
- IAM roles for ECS services and instances
Important notes:
- The autoscaling group uses
m5.large
instances (Rigor's instance size of choice). - Instances are launched as spot requests to favor cost over availability.
- You must configure your VPC, routing tables, and security groups to allow outbound traffic to Rigor resources (should work with default settings).
- EC2 instances will not have an SSH key assigned-- you will not be able to connect to them remotely.
- Create a new private location within the Rigor interface
- Update the
terraform.tfvars
file providing the key from the private location setup instruaction and any other changes desired -
terraform apply