stage, prod) with git ref rules.
You need Terraform >= 1.5 and an org-scoped API key (
fw_org_…). Create the key before you apply — see Authentication.1
Create a working directory
2
Declare the provider
The registry address is Leave
FireWeave-HQ/fireweave. Pin ~> 0.1.main.tf
api_key out of the file. Export FIREWEAVE_API_KEY instead.3
Define a project and environments
Append this to
main.tf. Changing slug on either resource forces replacement.4
Export your key and apply
terraform init downloads FireWeave-HQ/fireweave from the Terraform Registry. apply calls POST /v1/projects and POST /v1/projects/{projectID}/environments.What you created
- A project with slug
demo-project. - A default
stageenvironment that matches themainbranch, tags prefixedstage-, and the webhook aliasstaging. - A
prodenvironment that matches thereleasebranch and tags matchingv*.
Import an existing project
If the project already exists, import it instead of creating a second copy:Next
Authentication
Org keys,
FIREWEAVE_* vs FW_*, and custom endpoints.Projects
name, slug, status, and import.Environments
Ref-rule kinds and what Terraform does not expose.
Registry schema
Generated argument reference on the Terraform Registry.

