New Features
New Features
May 31, 2021

New Feature: Self-Hosted Agents

By
Sebastian Stadil

Big news for folks running infrastructure in environments inaccessible from the public internet! Starting today Scalr has an option to execute runs within your own networks thanks to installable and self-hosted “agents”.

Problem & Pain

By default, Scalr executes Terraform runs on a pool of shared agents that we maintain. This suffices for the majority of use cases, but sometimes, due to security, compliance, or network requirements, you need the runs to be executed within a special network inaccessible from the outside so that Terraform can make its API calls to various services.

There aren’t many workarounds to this: either forgo using Scalr for those workloads, or deploy Scalr on your own premises and forgo the convenience and security of SaaS.

Solution

Enter Scalr self-hosted agents.

These self-hosted agents run in agent pools deployed on your infrastructure, are fully encrypted, and only need network access back to Scalr to pull jobs and push run results.

Even better, we’ve placed no concurrency limit on them, so a single agent in a single pool could execute many runs in parallel (assuming you grant it enough ram and compute).

Once a pool of self-hosted agents has been created, workspaces can be configured to use them for runs.

How the Feature Works

The way these agents work is simple. They pull job info from the Scalr service and execute the run from within your network, instead of the push model otherwise used, so they only need outbound internet access. Then, each workspace can be set up to use these agents, or default to using the Scalr service.

How to Get Started

Getting started is easy. Simply pick a plan that gives you access to self-hosted agents, grab from Scalr the command to install them, and deploy one. Then your workspaces will have the option of using them for run execution.

Scalr provides copy-pastable commands to facilitate setup.

We even made a step by step guide for you here.

Note: While this blog references Terraform, everything mentioned in here also applies to OpenTofu. New to OpenTofu? It is a fork of Terraform 1.5.7 as a result of the license change from MPL to BUSL by HashiCorp. OpenTofu is an open-source alternative to Terraform that is governed by the Linux Foundation. All features available in Terraform 1.5.7 or earlier are also available in OpenTofu. Find out the history of OpenTofu here.

Start using the Terraform platform of the future.

A screenshot of the modules page in the Scalr Platform