opentofu/internal/command/testdata/init-cloud-simple/init-cloud-simple.tf
Martin Atkins bac59d2480 command/init: Be explicit that some options are not relevant for Cloud
There are a few command line options for "terraform init" which are only
relevant when working with traditional backends, with the Cloud
integration previously just mostly ignoring them, or sometimes misbehaving
slightly due to them creating an unreasonable situation.

Now we'll catch these and return explicit errors, in order to be clear
that these options are not needed nor supported in Cloud mode.
2021-11-17 14:20:44 -08:00

14 lines
377 B
HCL

# This is a simple configuration with Terraform Cloud mode minimally
# activated, but it's suitable only for testing things that we can exercise
# without actually accessing Terraform Cloud, such as checking of invalid
# command-line options to "terraform init".
terraform {
cloud {
organization = "PLACEHOLDER"
workspaces {
name = "PLACEHOLDER"
}
}
}