Skip to main content

Cloud Configuration

The main module of an OpenTF configuration can integrate with a cloud backend to enable its CLI-driven run workflow. You only need to configure these settings when you want to use OpenTF CLI to interact with a cloud backend. A cloud backend ignores them when interacting with OpenTF through version control or the API.

Usage Example

To configure the cloud CLI integration, add a nested cloud block within the terraform block. You cannot use the CLI integration and a state backend in the same configuration.

Refer to Using the Cloud Backend in the OpenTF CLI documentation for full configuration details, migration instructions, and command line arguments.

terraform {
cloud {
organization = "example_corp"
hostname = "app.example.io"

workspaces {
tags = ["app"]
}
}
}