Testing Custom Terraform Providers with Atmos Components
· 3 min read
If you develop Terraform providers, you can now test them locally with Atmos-managed components using Terraform's development overrides feature. This enables rapid iteration without publishing development versions to a registry.
Overview
When developing Terraform providers, you need to test them with real infrastructure code. Terraform's development overrides let you point to locally-built provider binaries instead of downloading from a registry. This works with Atmos components.
How It Works
Development overrides use two separate mechanisms that work together:
1. Provider Binary Location (Terraform CLI Config)
Create a .terraformrc file in your component directory:
provider_installation {
dev_overrides {
"registry.terraform.io/myorg/myprovider" = "/absolute/path/to/provider/bin"
}
direct {}
}
This tells Terraform where to find your locally-built provider binary instead of downloading it from a registry.
