Terraform Cloud Agent

Terraform Cloud Agent (tfc-agent) is a self-hosted bridge that lets HashiCorp's Terraform Cloud securely run Terraform plan and apply jobs on your own servers…

  • Development
  • Infrastructure
  • Tools & Utilities
Terraform Cloud Agent (tfc-agent) is a self-hosted bridge that lets HashiCorp's Terraform Cloud securely run Terraform plan and apply jobs on your own servers inside a private network without exposing it to the public internet.

Platform availability

Available on 0 of 10 platforms

  • Unraid (not listed)
  • TrueNAS (not listed)
  • Umbrel (not listed)
  • ZimaOS (not listed)
  • Proxmox (not listed)
  • Helm (not listed)
  • Mac (not listed)
  • Windows (not listed)
  • Linux (not listed)
  • Any server (not listed)

Health score?A 0-100 score computed nightly from four factors: maintained (40%: recent commits and steady activity), popular (25%: GitHub stars, log scale), easy to install (20%: platforms, install notes, setup guides, Docker image) and light to run (15%: minimum RAM, ARM support). When the source code has been checked, a fifth factor, security check (20%: automated scan for committed secrets, unsafe desktop-app settings, known-vulnerable dependencies and project hygiene; any serious finding caps it at 20), is added. Factors without data are left out and the rest are rescaled.

6/100 Low

Maintained
0GitHub repository is archived
Popular
00 GitHub stars
Easy to install
250 install platforms, install notes, Docker image
Light to run
No data

Based on 3 of 4 factors.

GitHub stars
0
Open issues
1
Last commit
2023-08-21
Activity
stale

Checked 21 days ago - source: GitHub (onemedical/tfc-agent-public)

Resources & Compatibility

ARM (e.g. Raspberry Pi) is supported.

Checked 56 days ago - source: Docker Hub image tags and published docs

First-install notes

  • How it works The agent connects outbound to the Terraform Cloud / HCP Terraform API and runs Terraform plans and applies on your own infrastructure, so no inbound ports need to be opened on your private network. source
  • Licensing The Terraform Cloud Agent is available with a Terraform Cloud Business-tier (now HCP Terraform) or self-managed Terraform Enterprise subscription. source
  • Running the agent Run the official hashicorp/tfc-agent Docker image on servers inside your private network; it polls HCP Terraform (HashiCorp Cloud Platform Terraform) and executes Terraform plans and applies locally, so no inbound access to your network is required. source
  • Repository scope The public repository contains usage examples, not the agent source, and is archived. source
  • Deploying the agent (Docker) Run HashiCorp's hashicorp/tfc-agent container from Docker Hub and configure it to connect to your Terraform Cloud workspace; it then executes plan and apply jobs inside your own private network. source
  • Example deployments The repository includes working examples for running the agent on AWS ECS Fargate (with IAM AssumeRole) and Azure Container Instances (with MSI) for credential-free provisioning from Terraform Cloud. source

Fetched 4 days ago - each note links to its source

Alternatives (6)

  • Ansible - Ansible is a digital conductor that automates repetitive computer tasks.
  • Foreman - Foreman is a free, open-source lifecycle management tool for physical and virtual servers.
  • Landscape - Landscape automates security patching, auditing, access management and compliance tasks across your Ubuntu estate.
  • Salt - Salt is a powerful remote execution manager that can be used to administer and provision servers in a fast and efficient way.
  • Terraform - Terraform is an infrastructure-as-code tool that lets DevOps and platform teams safely build, change, and version cloud and on-premises inf…
  • opentofu - OpenTofu is a command-line infrastructure-as-code tool that provides a community-driven drop-in replacement for Terraform.

Checked 43 days ago - source: AlternativeTo

Common questions

Does a self-hosted tfc-agent need inbound ports from the Terraform Cloud or HCP Terraform web UI?

No. The agent polls HCP Terraform or Terraform Enterprise for changes and executes them locally, so public ingress traffic is not required.

How do API-triggered runs and OIDC work with tfc-agent in GitHub Actions?

For GitHub Actions, TFC agent polling is the relevant agent model, and API-triggered runs with OIDC interact asynchronously with it.

How can I run scripts after each Terraform job on a tfc-agent?

Use agent hooks to run pre-plan, post-plan, pre-apply, and post-apply scripts around each job.

How can I reduce repeated large provider downloads for a Kubernetes-deployed tfc-agent?

Use provider caching with the tfc-agent so providers are not downloaded repeatedly, reducing Terraform run networking and provider download size.

Answers sourced from developer.hashicorp.com, discuss.hashicorp.com, discuss.hashicorp.com, www.reddit.com

Community

Collected 10 days ago - public community threads