Skip to content

Commit

Permalink
v0.54.0 changelog (#1336)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebasslash authored Apr 24, 2024
1 parent c325dcb commit c98e7b1
Show file tree
Hide file tree
Showing 147 changed files with 2,860 additions and 3,364 deletions.
11 changes: 9 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
## UNRELEASED
### Enhancements

## v0.54.0

ENHANCEMENTS:
* Rebrand Terraform Cloud to HCP Terraform by @sebasslash [#1328](https://github.com/hashicorp/terraform-provider-tfe/pull/1328)
* Adds `post_apply` to list of possible `stages` for Run Tasks by @carolinaborim [#1307](https://github.com/hashicorp/terraform-provider-tfe/pull/1307)

### Features
FEATURES:
* `d/tfe_oauth_client`: Add `project_ids` attribute, by @Netra2104 [1148](https://github.com/hashicorp/terraform-provider-tfe/pull/1148)
* `d/tfe_oauth_client`: Add `organization_scoped` attribute, by @Netra2104 [1148](https://github.com/hashicorp/terraform-provider-tfe/pull/1148)
* **New Resource**: `r/tfe_project_oauth_client` attaches/detaches an existing `project` to an existing `oauth client`, by @Netra2104 [1144](https://github.com/hashicorp/terraform-provider-tfe/pull/1144)
* **New Resource**: `r/tfe_test_variable` is a new resource for creating environment variables used by registry modules for terraform test, by @aaabdelgany [1285](https://github.com/hashicorp/terraform-provider-tfe/pull/1285)

BUG FIXES:
* `r/tfe_organization_default_settings`: Fix import resource address documentation by @Uk1288 [#1324](https://github.com/hashicorp/terraform-provider-tfe/pull/1324)

## v0.53.0

ENHANCEMENTS:
Expand Down
2 changes: 1 addition & 1 deletion 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.53.0"
version = "~> 0.54.0"
}
}
}
Expand Down
6 changes: 5 additions & 1 deletion website/docs/cdktf/csharp/d/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,11 @@ In addition to all arguments above, the following attributes are exported:
* `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.
<<<<<<< HEAD
* `AssessmentsEnabled` - (Available only in HCP Terraform) Indicates whether health assessments such as drift detection are enabled for the workspace.
=======
* `AssessmentsEnabled` - (Available only in Terraform Cloud) Indicates whether health assessments such as drift detection are enabled for the workspace.
>>>>>>> adf61bce (cdktf: update documentation)
* `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).
* `RemoteStateConsumerIds` - (Optional) A set of workspace IDs that will be set as the remote state consumers for the given workspace. Cannot be used if `GlobalRemoteState` is set to `True`.
Expand Down Expand Up @@ -88,4 +92,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-8a792abd68f0096121aefa7f2c56aa2455a7b698bf2cb5574b25e73321236d1e -->
<!-- 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.53.0"
version = "~> 0.54.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.53.0"
version = "~> 0.54.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 HCP Terraform `AppTerraformIo`
token = var.token
version = "~> 0.53.0"
version = "~> 0.54.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-0f1d4ec527475826682d45e6c65349a810ec40c497fb363f4a2468e8beb378f7 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-71b632c8101c3bde9d1598273955499b3ab09c1fe1051d376b5fc6c5538335fe -->
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,34 @@ for Business account.

In this example, the agent pool and workspace are connected through other resources that manage the agent pool permissions as well as the workspace execution mode. Notice that the `TfeWorkspaceSettings` uses the agent pool reference found in `TfeAgentPoolAllowedWorkspaces` in order to create the permission to use the agent pool before assigning it.

```hcl
resource "tfe_organization" "test-organization" {
name = "my-org-name"
email = "[email protected]"
}
// Ensure workspace and agent pool are create first
resource "tfe_workspace" "test-workspace" {
name = "my-workspace-name"
organization = tfe_organization.test-organization.name
}
resource "tfe_agent_pool" "test-agent-pool" {
name = "my-agent-pool-name"
organization = tfe_organization.test-organization.name
organization_scoped = false
}
// Ensure permissions are assigned second
resource "tfe_agent_pool_allowed_workspaces" "allowed" {
agent_pool_id = tfe_agent_pool.test-agent-pool.id
allowed_workspace_ids = [for key, value in tfe_workspace.test.*.id : value]
}
// Lastly, ensure the workspace agent execution is assigned last by
// referencing allowed_workspaces
resource "tfe_workspace_settings" "test-workspace-settings" {
workspace_id = tfe_workspace.test-workspace.id
execution_mode = "agent"
agent_pool_id = tfe_agent_pool_allowed_workspaces.allowed.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) }
});
}
}
```

Expand All @@ -68,4 +66,5 @@ A resource can be imported; use `<AGENT POOL ID>` as the import ID. For example:
terraform import tfe_agent_pool_allowed_workspaces.foobar apool-rW0KoLSlnuNb5adB
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-de3bb23c998fa1d7b1d6fadb2f671fda9e7a1f166eb6c368662962f9be2af35f -->

<!-- cache-key: cdktf-0.17.0-pre.15 input-9d6c804f088514863a2d3b994f35e4cd7e510b8364e61ba1fa41165766b7d693 -->
2 changes: 1 addition & 1 deletion website/docs/cdktf/csharp/r/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,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-a5797bfc1d563d3420d63a8c2aa349bc2e5be65c170398643e0b7b798b52d421 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-ce8c5d41ebbc57c1df647c807e38b748d12221b61915ccc24e4f1530f58312b5 -->
2 changes: 1 addition & 1 deletion website/docs/cdktf/go/d/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -91,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-8a792abd68f0096121aefa7f2c56aa2455a7b698bf2cb5574b25e73321236d1e -->
<!-- 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.53.0"
version = "~> 0.54.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.53.0"
version = "~> 0.54.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 HCP Terraform `AppTerraformIo`
token = var.token
version = "~> 0.53.0"
version = "~> 0.54.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-0f1d4ec527475826682d45e6c65349a810ec40c497fb363f4a2468e8beb378f7 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-71b632c8101c3bde9d1598273955499b3ab09c1fe1051d376b5fc6c5538335fe -->
65 changes: 36 additions & 29 deletions website/docs/cdktf/go/r/agent_pool_allowed_workspaces.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -19,36 +19,42 @@ for Business account.

In this example, the agent pool and workspace are connected through other resources that manage the agent pool permissions as well as the workspace execution mode. Notice that the `TfeWorkspaceSettings` uses the agent pool reference found in `TfeAgentPoolAllowedWorkspaces` in order to create the permission to use the agent pool before assigning it.

```hcl
resource "tfe_organization" "test-organization" {
name = "my-org-name"
email = "[email protected]"
```go
import constructs "github.com/aws/constructs-go/constructs"
import "github.com/hashicorp/terraform-cdk-go/cdktf"
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import "github.com/aws-samples/dummy/gen/providers/tfe/organization"
import "github.com/aws-samples/dummy/gen/providers/tfe/workspace"
import "github.com/aws-samples/dummy/gen/providers/tfe/agentPool"
import "github.com/aws-samples/dummy/gen/providers/tfe/agentPoolAllowedWorkspaces"
type myConvertedCode struct {
terraformStack
}

// Ensure workspace and agent pool are create first
resource "tfe_workspace" "test-workspace" {
name = "my-workspace-name"
organization = tfe_organization.test-organization.name
}
resource "tfe_agent_pool" "test-agent-pool" {
name = "my-agent-pool-name"
organization = tfe_organization.test-organization.name
organization_scoped = false
}
// Ensure permissions are assigned second
resource "tfe_agent_pool_allowed_workspaces" "allowed" {
agent_pool_id = tfe_agent_pool.test-agent-pool.id
allowed_workspace_ids = [for key, value in tfe_workspace.test.*.id : value]
}
// Lastly, ensure the workspace agent execution is assigned last by
// referencing allowed_workspaces
resource "tfe_workspace_settings" "test-workspace-settings" {
workspace_id = tfe_workspace.test-workspace.id
execution_mode = "agent"
agent_pool_id = tfe_agent_pool_allowed_workspaces.allowed.id
func newMyConvertedCode(scope construct, name *string) *myConvertedCode {
this := &myConvertedCode{}
cdktf.NewTerraformStack_Override(this, scope, name)
tfeOrganizationTestOrganization := organization.NewOrganization(this, jsii.String("test-organization"), &organizationConfig{
email: jsii.String("[email protected]"),
name: jsii.String("my-org-name"),
})
tfeWorkspaceTestWorkspace := workspace.NewWorkspace(this, jsii.String("test-workspace"), &workspaceConfig{
name: jsii.String("my-workspace-name"),
organization: cdktf.Token_AsString(tfeOrganizationTestOrganization.name),
})
tfeAgentPoolTestAgentPool := agentPool.NewAgentPool(this, jsii.String("test-agent-pool"), &agentPoolConfig{
name: jsii.String("my-agent-pool-name"),
organization: cdktf.Token_*AsString(tfeOrganizationTestOrganization.name),
organizationScoped: jsii.Boolean(false),
})
agentPoolAllowedWorkspaces.NewAgentPoolAllowedWorkspaces(this, jsii.String("test-allowed-workspaces"), &agentPoolAllowedWorkspacesConfig{
agentPoolId: cdktf.Token_*AsString(tfeAgentPoolTestAgentPool.id),
allowedWorkspaceIds: []*string{
cdktf.Token_*AsString(tfeWorkspaceTestWorkspace.id),
},
})
return this
}
```

Expand All @@ -68,4 +74,5 @@ A resource can be imported; use `<AGENT POOL ID>` as the import ID. For example:
terraform import tfe_agent_pool_allowed_workspaces.foobar apool-rW0KoLSlnuNb5adB
```

<!-- cache-key: cdktf-0.17.0-pre.15 input-de3bb23c998fa1d7b1d6fadb2f671fda9e7a1f166eb6c368662962f9be2af35f -->

<!-- cache-key: cdktf-0.17.0-pre.15 input-9d6c804f088514863a2d3b994f35e4cd7e510b8364e61ba1fa41165766b7d693 -->
2 changes: 1 addition & 1 deletion website/docs/cdktf/go/r/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -199,4 +199,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-a5797bfc1d563d3420d63a8c2aa349bc2e5be65c170398643e0b7b798b52d421 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-ce8c5d41ebbc57c1df647c807e38b748d12221b61915ccc24e4f1530f58312b5 -->
2 changes: 1 addition & 1 deletion website/docs/cdktf/java/d/workspace.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,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-8a792abd68f0096121aefa7f2c56aa2455a7b698bf2cb5574b25e73321236d1e -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-82f43ee78054a4a88c04b2768dd5c3b6ba74cdac1de55fecef133b85fe5aee8a -->
8 changes: 4 additions & 4 deletions website/docs/cdktf/java/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.53.0"
version = "~> 0.54.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.53.0"
version = "~> 0.54.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 HCP Terraform `appTerraformIo`
token = var.token
version = "~> 0.53.0"
version = "~> 0.54.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-0f1d4ec527475826682d45e6c65349a810ec40c497fb363f4a2468e8beb378f7 -->
<!-- cache-key: cdktf-0.17.0-pre.15 input-71b632c8101c3bde9d1598273955499b3ab09c1fe1051d376b5fc6c5538335fe -->
Loading

0 comments on commit c98e7b1

Please sign in to comment.