Execution Mode
By default, the execution mode of a workspace is set to remote, which means the run will execute in Scalr. If you need to run it locally an don't want to be charged for a run, the execution mode flag can be set per workspace tto "State storage only":
The state storage only mode is great for early development if users want to test code locally, but still have state stored in a Scalr workspace. Scalr does not charge for runs in a workspace that has the execution mode set to state storage only.
The following features are not available when using state storage only:
- Scalr run dashboard
- Open Policy Agent
- Infracost
- Provider Configurations
- Variables stored in Scalr
Provider:
resource "scalr_workspace" "infra" {
name = "infra"
environment_id = "org-123456"
execution_mode = "local"
}
See the full workspace provider docs here .
If the execution mode is set to state storage only, users will still be able to execute runs through the UI or pull requests, and those will execute remotely in Scalr. The state storage only mode is designed for CLI-based workspaces.
Updated 26 days ago