dtz_context
last updated: 2025-07-10
The dtz_context
resource allows you to create, update, and delete contexts in the DownToZero.cloud service. A context represents a specific configuration or environment within the DTZ platform.
In Terraform, the context is implicitly derived from the user session or fetched using the dtz_context data source—even if it’s not explicitly declared in the resource block.
Example Usage
resource "dtz_context" "example" {
alias = "production"
}
Schema
Required
alias
(String) A user-defined alias for the context.
Read-Only
id
(String) The ID of this resource.
Import
Import is supported using the following syntax:
terraform import dtz_context.example <context_id>