The Starchitect Terraform Provider allows you to integrate Infrastructure as Code (IaC) and Policy as Code (PaC) workflows into your Terraform configuration. This provider scans your IaC and PaC files and populates a Terraform output variable named scan_result
with the results.
- Accepts IaC (Infrastructure as Code) and PaC (Policy as Code) file paths as inputs.
- Scans the provided files for compliance and best practices.
- Outputs a detailed scan result to the Terraform output variable
scan_result
.
- Terraform
>= 1.0.0
Add the provider to your Terraform configuration. For example:
terraform {
required_providers {
starchitect = {
source = "registry.terraform.io/nonfx/starchitect"
version = "1.0.0"
}
}
}
-
update
dev_overrides
into~/.terraformrc
file to ensure that new provider's definition/functionality is considered from localprovider_installation { dev_overrides { "registry.terraform.io/nonfx/starchitect" = "<GOBIN PATH>" } direct {} }
-
set go env
GOBIN
as$GOPATH/bin
-
generate binary / update binary with new changes
go install
-
new provider is ready to be used locally. refer example
terraform plan -out=tfplan && terraform show -json tfplan > plan.json