Scopes and access grants
A scope belongs to one infrastructure, contains blocks, and keeps a separate Terraform state. It can be granted to one consumer team. The infrastructure’s owning team continues to manage the scope and can also use its blocks.
Create a scope
Open the infrastructure’s scopes and create a scope with:
| Setting | Meaning |
|---|---|
| Name | 1–255 characters; starts with a letter or _, then letters, digits, _, or -. |
| Deduplicator | Exactly the number of characters configured on the infrastructure. |
| Granted to | Optional consumer team. Without a grant, consumers receive no access through this scope. |
| Default provider | Optional configured provider belonging to the same infrastructure. |
A deduplicator must be unique among the infrastructure’s scopes. Modules can include it in resource names to avoid collisions between scopes. See deduplicators for the fields involved and a complete example.
Use separate scopes for independent states, such as development and production. A grant applies to the scope, not to selected templates or individual blocks. All members of the granted team receive consumer access under the permission model.
Default provider
The default is used by blocks whose templates have no valued provider fields. Leave it unset only when every block selects all providers its module needs through provider fields. The default does not fill missing bindings in a module with explicit provider selections.
Operate a scope
Consumers can create and edit blocks, calculate diffs, and apply reviewed changes. Owners configure the scope and its shared templates and providers. See provision → diff → apply.
A running scope job locks the scope. Check the linked job before editing or scheduling conflicting work. Closing a workflow dialog does not cancel the job. Cancellation and recovery are covered in jobs.
Changing the default provider can redirect future operations. Review a fresh diff after this change.
Removing a grant changes consumer access; it does not remove blocks or resources. Deleting a scope removes application records, including its state, rather than issuing Terraform destroy. Decommission managed resources first, verify the result, and preserve a backup before deleting the state that tracks them.