Skip to content

Aembit supports scalable, repeatable infrastructure-as-code workflows through its official Terraform provider. By managing Aembit resources declaratively in code, you can automate onboarding, ensure consistent policies across environments, and scale access controls alongside your infrastructure.

This guide explains how the Aembit Terraform Provider works and how to use it to scale Aembit in production environments.

Terraform gives you the ability to:

  • Codify access policies and workload identity configuration
  • Version control changes to your identity and access infrastructure
  • Apply changes consistently across staging, production, and multicloud environments
  • Automate onboarding for new workloads, trust providers, and credential integrations

This helps reduce manual steps, eliminate configuration drift, and ensure your access policies are reproducible and reviewable.

The Aembit Terraform Provider supports all core Aembit resources:

Resource TypeTerraform Support
Trust Providers✅ Create and configure
Client Workloads✅ Manage identity matching
Server Workloads✅ Define endpoints, auth
Credential Providers✅ Integrate secrets/tokens
Access Policies✅ Authorize workload access
Access Conditions✅ Enforce dynamic controls
Resource Sets✅ Segment environments
Roles & Permissions✅ Assign fine-grained access

This full coverage enables you to declare your Aembit configuration as code, just like cloud resources or Kubernetes objects.

  1. Authenticate with your Aembit tenant by providing an access token.
  2. Declare resources like workloads, policies, and credential providers in .tf files.
  3. Run terraform apply to push the desired state to Aembit.
  4. Aembit provisions or updates the corresponding resources in your tenant.

Example provider block:

provider "aembit" {
token = var.aembit_api_token
tenant_id = var.aembit_tenant_id
}