Skip to main content
The space block declares a named configuration namespace. It is used to group related configuration fields that don’t fit the input model — for example, environment-wide settings shared across multiple stacks.

Syntax

space "name" {
    field = value
    field = value
}

Example

space "prod" {
    region      = "us-east-1"
    environment = "production"
    cost_center = "platform"
}

Current status

The space block is parsed and its structure is validated by the XCL parser. It appears in the AST as a SpaceBlock with a name label and a list of field assignments. The typechecker does not currently perform reference resolution or validation within space blocks. Full runtime semantics — how space values propagate to resources and how they interact with provider configuration — are implemented at the Pulumi execution layer.

Fields

Space fields use = assignment (same as locals and output):
space "shared" {
    tags = {
        ManagedBy = "ubx"
        Team      = "platform"
    }
    owner = "platform-eng"
}