Skip to content

Commit

Permalink
Merge pull request #1135 from hashicorp/sebasslash/v0.50.0-changelog
Browse files Browse the repository at this point in the history
v0.50.0 Changelog, upgrade go-tfe -> v1.39.1
  • Loading branch information
sebasslash authored Nov 9, 2023
2 parents 49101a7 + fbc42ad commit 0947ee8
Show file tree
Hide file tree
Showing 158 changed files with 3,067 additions and 3,433 deletions.
9 changes: 6 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,19 @@
<!-- Add CHANGELOG entry to this section for any PR awaiting the next release -->
<!-- Please also include if this is a Bug Fix, Enhancement, or Feature -->

## v0.50.0

FEATURES:
* `r/tfe_variable_set`: Add `priority` attribute, by @Netra2104 [1075](https://github.com/hashicorp/terraform-provider-tfe/pull/1075)
* `d/tfe_variable_set`: Add `priority` attribute, by @Netra2104 [1075](https://github.com/hashicorp/terraform-provider-tfe/pull/1075)
* `r/tfe_workspace`: Add `auto_apply_run_trigger` attribute, by @nfagerlund [1123](https://github.com/hashicorp/terraform-provider-tfe/pull/1123)
* `d/tfe_workspace`: Add `auto_apply_run_trigger` attribute, by @nfagerlund [1123](https://github.com/hashicorp/terraform-provider-tfe/pull/1123)
* `r/tfe_variable_set`: Add `priority` attribute, by @Netra2104 [1075](https://github.com/hashicorp/terraform-provider-tfe/pull/1075)
* `d/tfe_variable_set`: Add `priority` attribute, by @Netra2104 [1075](https://github.com/hashicorp/terraform-provider-tfe/pull/1075)

BUG FIXES:

* `r/tfe_variable`: Fix nil pointer dereference segfault on client error during Update operations, by @nfagerlund [1131](https://github.com/hashicorp/terraform-provider-tfe/1131)
* `r/tfe_policy_set`: Fix detecting spurious changes on every run when providing file contents with `tfe_slug`. This may require an updated version of tfc-agent for the full fix to take effect. Fixed by upgrading go-slug to v0.13.1 [1123](https://github.com/hashicorp/terraform-provider-tfe/pull/1123)
* `r/tfe_variable`: Fix nil pointer dereference segfault on client error during Update operations, by @nfagerlund [1131](https://github.com/hashicorp/terraform-provider-tfe/1131)
* provider: Fix an issue where the request body is not preserved during certain retry scenarios, by @sebasslash [1135](https://github.com/hashicorp/terraform-provider-tfe/pull/1135)

## v0.49.2 (October 4, 2023)

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ Declare the provider in your configuration and `terraform init` will automatical
terraform {
required_providers {
tfe = {
version = "~> 0.49.2"
version = "~> 0.50.0"
}
}
}
Expand All @@ -45,7 +45,7 @@ The above snippet using `required_providers` is for Terraform 0.13+; if you are

```hcl
provider "tfe" {
version = "~> 0.49.2"
version = "~> 0.50.0"
...
}
```
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ require (
golang.org/x/crypto v0.13.0 // indirect
golang.org/x/net v0.13.0 // indirect
golang.org/x/oauth2 v0.9.0 // indirect
golang.org/x/sys v0.13.0 // indirect
golang.org/x/sys v0.14.0 // indirect
golang.org/x/text v0.13.0 // indirect
golang.org/x/time v0.4.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.13.0 h1:Af8nKPmuFypiUBjVoU9V20FiaFXOcuZI21p0ycVYYGE=
golang.org/x/sys v0.13.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.14.0 h1:Vz7Qs629MkJkGyHxUlRHizWJRG2j8fbQKjELVSNhy7Q=
golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
Expand Down
5 changes: 3 additions & 2 deletions website/docs/cdktf/csharp/d/variable_set.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ The following arguments are supported:
* `Organization` - Name of the organization.
* `Name` - Name of the variable set.
* `Description` - Description of the variable set.
* `Global` - Whether or not the variable set applies to all workspaces in the organization.
* `Global` - Whether the variable set applies to all workspaces in the organization.
* `Priority` - Whether the variables in this set are able to be over-written.
* `WorkspaceIds` - IDs of the workspaces that use the variable set.
* `VariableIds` - IDs of the variables attached to the variable set.
* `ProjectIds` - IDs of the projects that use the variable set.

<!-- cache-key: cdktf-0.17.0-pre.15 input-ae45fb346c802a01a9f7b3651d998c5c2a99783e046d2e156817923efbbe7dc3 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-69cc7771506b3265795fe469ee556bc13e62b7222aa6d0f36adeae7b5aa799c2 -->
3 changes: 2 additions & 1 deletion website/docs/cdktf/csharp/d/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ In addition to all arguments above, the following attributes are exported:
* `Id` - The workspace ID.
* `AllowDestroyPlan` - Indicates whether destroy plans can be queued on the workspace.
* `AutoApply` - Indicates whether to automatically apply changes when a Terraform plan is successful.
* `AutoApplyRunTrigger` - Whether the workspace will automatically apply changes for runs that were created by run triggers from another workspace.
* `AssessmentsEnabled` - (Available only in Terraform Cloud) Indicates whether health assessments such as drift detection are enabled for the workspace.
* `FileTriggersEnabled` - Indicates whether runs are triggered based on the changed files in a VCS push (if `True`) or always triggered on every push (if `False`).
* `GlobalRemoteState` - (Optional) Whether the workspace should allow all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (determined by the `RemoteStateConsumerIds` argument).
Expand Down Expand Up @@ -87,4 +88,4 @@ The `VcsRepo` block contains:
* `OauthTokenId` - OAuth token ID of the configured VCS connection.
* `TagsRegex` - A regular expression used to trigger a Workspace run for matching Git tags.

<!-- cache-key: cdktf-0.17.0-pre.15 input-031765b2961bc629e8d9019635a143979617a42923c522fb8f14fba23a365b45 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-82f43ee78054a4a88c04b2768dd5c3b6ba74cdac1de55fecef133b85fe5aee8a -->
8 changes: 4 additions & 4 deletions website/docs/cdktf/csharp/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future:
terraform {
required_providers {
tfe = {
version = "~> 0.49.2"
version = "~> 0.50.0"
}
}
}
Expand All @@ -90,7 +90,7 @@ The above snippet using `RequiredProviders` is for Terraform 0.13+; if you are u

```hcl
provider "tfe" {
version = "~> 0.49.2"
version = "~> 0.50.0"
...
}
```
Expand All @@ -103,7 +103,7 @@ For more information on provider installation and constraining provider versions
provider "tfe" {
hostname = var.hostname # Optional, defaults to Terraform Cloud `AppTerraformIo`
token = var.token
version = "~> 0.49.2"
version = "~> 0.50.0"
}
# Create an organization
Expand All @@ -129,4 +129,4 @@ The following arguments are supported:
arguments. Ensure that the organization already exists prior to using this argument.
This can also be specified using the `TfeOrganization` environment variable.

<!-- cache-key: cdktf-0.17.0-pre.15 input-33fe894f2a52223676bdccc7d758f6743af2cb3c4901d8dbb5367eb16795f07a -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-71b632c8101c3bde9d1598273955499b3ab09c1fe1051d376b5fc6c5538335fe -->
4 changes: 2 additions & 2 deletions website/docs/cdktf/csharp/r/agent_pool.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ The following arguments are supported:

* `Name` - (Required) Name of the agent pool.
* `Organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config.
* `OrganizationScoped` - (Optional) Whether or not the agent pool is scoped to all workspaces in the organization. Defaults to `True`.
* `OrganizationScoped` - (Optional) Whether or not the agent pool is scoped to all workspaces in the organization. Defaults to `True`. Should be `False` when limiting workspaces that can use the agent pool with the [tfe_agent_pool_allowed_workspaces](agent_pool_allowed_workspaces.html) resource.

## Attributes Reference

Expand All @@ -66,4 +66,4 @@ terraform import tfe_agent_pool.test apool-rW0KoLSlnuNb5adB
terraform import tfe_workspace.test my-org-name/my-agent-pool-name
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-0c7f696f1755518d4d25139bde27181a2162728db0756dfc60a6fe8e169b3689 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-34df65a2eaec9900096b8c5dafac6d4d71de1bb94a65e6a1dc1e75cba2f439a2 -->
Original file line number Diff line number Diff line change
Expand Up @@ -19,34 +19,42 @@ for Business account.

Basic usage:

```hcl
resource "tfe_organization" "test-organization" {
name = "my-org-name"
email = "[email protected]"
}
resource "tfe_workspace" "test" {
name = "my-workspace-name"
organization = tfe_organization.test.name
}
resource "tfe_agent_pool" "test-agent-pool" {
name = "my-agent-pool-name"
organization = tfe_organization.test-organization.name
organization_scoped = true
}
resource "tfe_agent_pool_allowed_workspaces" "foobar" {
agent_pool_id = tfe_agent_pool.foobar.id
allowed_workspace_ids = [tfe_workspace.test.id]
```csharp
using Constructs;
using HashiCorp.Cdktf;
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
using Gen.Providers.Tfe;
class MyConvertedCode : TerraformStack
{
public MyConvertedCode(Construct scope, string name) : base(scope, name)
{
var tfeOrganizationTestOrganization = new Organization.Organization(this, "test-organization", new OrganizationConfig {
Email = "[email protected]",
Name = "my-org-name"
});
var tfeWorkspaceTestWorkspace = new Workspace.Workspace(this, "test-workspace", new WorkspaceConfig {
Name = "my-workspace-name",
Organization = Token.AsString(tfeOrganizationTestOrganization.Name)
});
var tfeAgentPoolTestAgentPool = new AgentPool.AgentPool(this, "test-agent-pool", new AgentPoolConfig {
Name = "my-agent-pool-name",
Organization = Token.AsString(tfeOrganizationTestOrganization.Name),
OrganizationScoped = false
});
new AgentPoolAllowedWorkspaces.AgentPoolAllowedWorkspaces(this, "test-allowed-workspaces", new AgentPoolAllowedWorkspacesConfig {
AgentPoolId = Token.AsString(tfeAgentPoolTestAgentPool.Id),
AllowedWorkspaceIds = new [] { Token.AsString(tfeWorkspaceTestWorkspace.Id) }
});
}
}
```

## Argument Reference

The following arguments are supported:

* `AgentPoolId` - (Required) ID of the team.
* `AgentPoolId` - (Required) The ID of the agent pool.
* `AllowedWorkspaceIds` - (Required) IDs of workspaces to be added as allowed workspaces on the agent pool.


Expand All @@ -59,4 +67,4 @@ terraform import tfe_agent_pool_allowed_workspaces.foobar apool-rW0KoLSlnuNb5adB
```


<!-- cache-key: cdktf-0.17.0-pre.15 input-0830c2350c9bc1d08e42086147e2faab617c9e3df62a7fdecdc74ef5e6b8439f -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-9d6c804f088514863a2d3b994f35e4cd7e510b8364e61ba1fa41165766b7d693 -->
49 changes: 47 additions & 2 deletions website/docs/cdktf/csharp/r/variable_set.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ description: |-
Manages variable sets.
---


<!-- Please do not edit this file, it is generated. -->
# tfe_variable_set

Creates, updates and destroys variable sets.
Expand Down Expand Up @@ -120,13 +122,56 @@ class MyConvertedCode : TerraformStack
}
```

Create a priority variable set:

```csharp
using Constructs;
using HashiCorp.Cdktf;
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
using Gen.Providers.Tfe;
class MyConvertedCode : TerraformStack
{
public MyConvertedCode(Construct scope, string name) : base(scope, name)
{
var tfeOrganizationTest = new Organization.Organization(this, "test", new OrganizationConfig {
Email = "[email protected]",
Name = "my-org-name"
});
var tfeVariableSetTest = new VariableSet.VariableSet(this, "test_1", new VariableSetConfig {
Description = "Variable set applied to all workspaces.",
Name = "Global Varset",
Organization = Token.AsString(tfeOrganizationTest.Name),
Priority = true
});
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
tfeVariableSetTest.OverrideLogicalId("test");
new Variable.Variable(this, "test-a", new VariableConfig {
Category = "terraform",
Description = "a useful description",
Key = "seperate_variable",
Value = "my_value_name",
VariableSetId = Token.AsString(tfeVariableSetTest.Id)
});
new Variable.Variable(this, "test-b", new VariableConfig {
Category = "env",
Description = "an environment variable",
Key = "another_variable",
Value = "my_value_name",
VariableSetId = Token.AsString(tfeVariableSetTest.Id)
});
}
}
```

## Argument Reference

The following arguments are supported:

* `Name` - (Required) Name of the variable set.
* `Description` - (Optional) Description of the variable set.
* `Global` - (Optional) Whether or not the variable set applies to all workspaces in the organization. Defaults to `False`.
* `Global` - (Optional) Whether the variable set applies to all workspaces in the organization. Defaults to `False`.
* `Priority` - (Optional) Whether the variables in this set can be over-written by more specific scopes including values set on the command line. Defaults to `False`.
* `Organization` - (Optional) Name of the organization. If omitted, organization must be defined in the provider config.
* `WorkspaceIds` - **Deprecated** (Optional) IDs of the workspaces that use the variable set.
Must not be set if `Global` is set. This argument is mutually exclusive with using the resource
Expand All @@ -145,4 +190,4 @@ Variable sets can be imported; use `<VARIABLE SET ID>` as the import ID. For exa
terraform import tfe_variable_set.test varset-5rTwnSaRPogw6apb
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-f7d62718eed35f26440fb694022ebdc09326a9d03b988efb8a3c149eb3b94b1a -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-56c480ce5d76f75a9c6444491a533a03a70a4fb8de37cdeb7ea6b6fdb26d44c4 -->
3 changes: 2 additions & 1 deletion website/docs/cdktf/csharp/r/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ The following arguments are supported:
* `AllowDestroyPlan` - (Optional) Whether destroy plans can be queued on the workspace.
* `AssessmentsEnabled` - (Optional) Whether to regularly run health assessments such as drift detection on the workspace. Defaults to `False`.
* `AutoApply` - (Optional) Whether to automatically apply changes when a Terraform plan is successful. Defaults to `False`.
* `AutoApplyRunTrigger` - (Optional) Whether to automatically apply changes for runs that were created by run triggers from another workspace. Defaults to `False`.
* `Description` - (Optional) A description for the workspace.
* `ExecutionMode` - (Optional) Which [execution mode](https://developer.hashicorp.com/terraform/cloud-docs/workspaces/settings#execution-mode)
to use. Using Terraform Cloud, valid values are `Remote`, `Local` or`Agent`.
Expand Down Expand Up @@ -180,4 +181,4 @@ terraform import tfe_workspace.test ws-CH5in3chf8RJjrVd
terraform import tfe_workspace.test my-org-name/my-wkspace-name
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-1d97132dd27c5c2de3f8a57af632a1e6455a32862dd3149f72527b836d7707f5 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-ce8c5d41ebbc57c1df647c807e38b748d12221b61915ccc24e4f1530f58312b5 -->
5 changes: 3 additions & 2 deletions website/docs/cdktf/go/d/variable_set.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,10 @@ The following arguments are supported:
* `Organization` - Name of the organization.
* `Name` - Name of the variable set.
* `Description` - Description of the variable set.
* `Global` - Whether or not the variable set applies to all workspaces in the organization.
* `Global` - Whether the variable set applies to all workspaces in the organization.
* `Priority` - Whether the variables in this set are able to be over-written.
* `WorkspaceIds` - IDs of the workspaces that use the variable set.
* `VariableIds` - IDs of the variables attached to the variable set.
* `ProjectIds` - IDs of the projects that use the variable set.

<!-- cache-key: cdktf-0.17.0-pre.15 input-ae45fb346c802a01a9f7b3651d998c5c2a99783e046d2e156817923efbbe7dc3 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-69cc7771506b3265795fe469ee556bc13e62b7222aa6d0f36adeae7b5aa799c2 -->
3 changes: 2 additions & 1 deletion website/docs/cdktf/go/d/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ In addition to all arguments above, the following attributes are exported:
* `Id` - The workspace ID.
* `AllowDestroyPlan` - Indicates whether destroy plans can be queued on the workspace.
* `AutoApply` - Indicates whether to automatically apply changes when a Terraform plan is successful.
* `AutoApplyRunTrigger` - Whether the workspace will automatically apply changes for runs that were created by run triggers from another workspace.
* `AssessmentsEnabled` - (Available only in Terraform Cloud) Indicates whether health assessments such as drift detection are enabled for the workspace.
* `FileTriggersEnabled` - Indicates whether runs are triggered based on the changed files in a VCS push (if `True`) or always triggered on every push (if `False`).
* `GlobalRemoteState` - (Optional) Whether the workspace should allow all workspaces in the organization to access its state data during runs. If false, then only specifically approved workspaces can access its state (determined by the `RemoteStateConsumerIds` argument).
Expand Down Expand Up @@ -90,4 +91,4 @@ The `VcsRepo` block contains:
* `OauthTokenId` - OAuth token ID of the configured VCS connection.
* `TagsRegex` - A regular expression used to trigger a Workspace run for matching Git tags.

<!-- cache-key: cdktf-0.17.0-pre.15 input-031765b2961bc629e8d9019635a143979617a42923c522fb8f14fba23a365b45 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-82f43ee78054a4a88c04b2768dd5c3b6ba74cdac1de55fecef133b85fe5aee8a -->
8 changes: 4 additions & 4 deletions website/docs/cdktf/go/index.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ automatically installed by `terraform init` in the future:
terraform {
required_providers {
tfe = {
version = "~> 0.49.2"
version = "~> 0.50.0"
}
}
}
Expand All @@ -90,7 +90,7 @@ The above snippet using `RequiredProviders` is for Terraform 0.13+; if you are u

```hcl
provider "tfe" {
version = "~> 0.49.2"
version = "~> 0.50.0"
...
}
```
Expand All @@ -103,7 +103,7 @@ For more information on provider installation and constraining provider versions
provider "tfe" {
hostname = var.hostname # Optional, defaults to Terraform Cloud `AppTerraformIo`
token = var.token
version = "~> 0.49.2"
version = "~> 0.50.0"
}
# Create an organization
Expand All @@ -129,4 +129,4 @@ The following arguments are supported:
arguments. Ensure that the organization already exists prior to using this argument.
This can also be specified using the `TfeOrganization` environment variable.

<!-- cache-key: cdktf-0.17.0-pre.15 input-33fe894f2a52223676bdccc7d758f6743af2cb3c4901d8dbb5367eb16795f07a -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-71b632c8101c3bde9d1598273955499b3ab09c1fe1051d376b5fc6c5538335fe -->
Loading

0 comments on commit 0947ee8

Please sign in to comment.