-
Notifications
You must be signed in to change notification settings - Fork 159
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1135 from hashicorp/sebasslash/v0.50.0-changelog
v0.50.0 Changelog, upgrade go-tfe -> v1.39.1
- Loading branch information
Showing
158 changed files
with
3,067 additions
and
3,433 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
||
|
||
|
@@ -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 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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. | ||
|
@@ -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 | ||
|
@@ -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 --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.