opentofu/internal
Karl Kirch d7e07e66fc
Add ability to specify Terraform Cloud Project in cloud block (#33489)
* Add ability to specify Terraform Cloud Project in cloud block

Adds project configuration to the workspaces section of the cloud block.
Also configurable via the `TF_CLOUD_PROJECT` environment variable.
When a project is configured, the following behaviors will occur:
- `terraform init` with workspaces.name configured will create the workspace in the given project
- `terraform workspace new <name>` with workspaces.tags configured will create workspaces in the given project
- `terraform workspace list` will list workspaces only from the given project

The following behaviors are NOT affected by project configuration
- `terraform workspace delete <name>` does not validate the workspace's inclusion in the given project
- When initializing a workspace that already exists in Terraform Cloud, the workspace's parent project is NOT validated against the given project

Adds tests for cloud block configuration of project
Update changelog

* Update cloud block docs

* Fix typos and changelog entry

* Add speculative project lookup early in the cloud initialize process to capture inability to find a configured project

* Add project config for alias test
2023-08-01 13:43:07 -07:00
..
addrs Add input validation into the 'checks' outputs and tracking (#33481) 2023-07-10 11:33:45 +01:00
backend Merge pull request #33571 from hashicorp/s3/add-legacy-acceptance-tests 2023-07-31 13:27:02 -07:00
builtin builtin/providers/terraform: terraform_data "id" is guaranteed non-null 2023-05-24 13:44:08 -07:00
checks testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
cloud Add ability to specify Terraform Cloud Project in cloud block (#33489) 2023-08-01 13:43:07 -07:00
cloudplugin Update cloudproto1.pb.go 2023-07-25 09:30:25 -06:00
command test framework: expand variables available to test assertions (#33611) 2023-08-01 09:59:29 +02:00
communicator [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
configs testing framework: allow users to specify deeply nested testing directories (#33584) 2023-07-27 10:38:21 +02:00
copy [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
dag [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
depsfile [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
didyoumean [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
e2e [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
experiments [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
genconfig fix static check errors 2023-05-30 18:00:41 -07:00
getmodules [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
getproviders upgrade golang.org/x/crypto/openpgp to github.com/ProtoMail/go-crypto (#33406) 2023-06-22 08:32:12 +02:00
grpcwrap [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
helper/slowmessage [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
httpclient [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
initwd testing framework: change test file extension to .tftest.hcl (#33553) 2023-07-20 16:57:05 +02:00
instances [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
ipaddr [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
lang testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
legacy [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
logging Adds cloud subcommand with some toy options 2023-07-25 09:28:32 -06:00
modsdir [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
moduledeps [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
moduletest test framework: include transformed config before validating config (#33608) 2023-08-01 09:47:00 +02:00
plans Add error wrapper types to highlight bad plan/state data 2023-07-24 14:12:44 -04:00
plugin always set schema caches from provider clients 2023-07-18 13:52:41 -04:00
plugin6 always set schema caches from provider clients 2023-07-18 13:52:41 -04:00
provider-simple [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
provider-simple-v6 [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
provider-terraform/main [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
providercache [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
providers add get_provider_schema_optional server capability 2023-07-10 10:59:15 -04:00
provisioner-local-exec/main [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
provisioners [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
refactoring testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
registry [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
repl testing framework: introduce test command optional flags (#33504) 2023-07-19 10:07:46 +02:00
replacefile [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
states Add error wrapper types to highlight bad plan/state data 2023-07-24 14:12:44 -04:00
terminal [COMPLIANCE] Add Copyright and License Headers 2023-05-02 15:33:06 +00:00
terraform test framework: fix bug preventing remaining assertions being checked after one has failed (#33601) 2023-08-01 09:56:51 +02:00
tfdiags [testing framework] implement expect_failures functionality (#33443) 2023-07-10 11:30:44 +01:00
tfplugin5 Merge pull request #33486 from hashicorp/jbardin/schema-cache-proto 2023-07-18 11:18:11 -04:00
tfplugin6 Merge pull request #33486 from hashicorp/jbardin/schema-cache-proto 2023-07-18 11:18:11 -04:00