fireweave_environment manages a Fireweave environment — a named stage in a project’s promotion pipeline (for example dev, stage, or prod).
Environments can declare branch and tag matching rules so Fireweave can resolve which stage a git ref belongs to.
Generated schema: fireweave_environment on the Terraform Registry.
Example
project_id or slug forces a new resource. display_name, is_default, branch_rules, tag_rules, and webhook_aliases update in place.
Arguments
Read-only
Ref rules
branch_rules and tag_rules share the same object shape:
Not exposed in Terraform
The environment API also returns fields the provider does not manage:promotionRankenvironmentNamecreatedAtupdatedAt
slug, display_name, and is_default instead.
Import
Import with<project_id>/<env_id>:
List environments
fireweave_environments lists environments for a project. The list endpoint can return partial objects, so id may be empty. See Data sources.
Next
Projects
Create the project that owns these environments.
Data sources
List environments and find the default slug.

