-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding variable collection support (#88)
* Bump github.com/hashicorp/terraform-plugin-docs from 0.18.0 to 0.19.4 Bumps [github.com/hashicorp/terraform-plugin-docs](https://github.com/hashicorp/terraform-plugin-docs) from 0.18.0 to 0.19.4. - [Release notes](https://github.com/hashicorp/terraform-plugin-docs/releases) - [Changelog](https://github.com/hashicorp/terraform-plugin-docs/blob/main/CHANGELOG.md) - [Commits](hashicorp/terraform-plugin-docs@v0.18.0...v0.19.4) --- updated-dependencies: - dependency-name: github.com/hashicorp/terraform-plugin-docs dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <[email protected]> * Update version * feat: Adding collection support * fix --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
2c5e8fa
commit 293927b
Showing
17 changed files
with
1,368 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "terrakube_collection Resource - terrakube" | ||
subcategory: "" | ||
description: |- | ||
Create a collection and bind it to an organization. | ||
--- | ||
|
||
# terrakube_collection (Resource) | ||
|
||
Create a collection and bind it to an organization. | ||
|
||
|
||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `description` (String) Collection description | ||
- `name` (String) Collection name | ||
- `organization_id` (String) Terrakube organization id | ||
- `priority` (Number) Collection priority | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Collection Id |
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "terrakube_collection_item Resource - terrakube" | ||
subcategory: "" | ||
description: |- | ||
Create collection item that will be used by this workspace only. | ||
--- | ||
|
||
# terrakube_collection_item (Resource) | ||
|
||
Create collection item that will be used by this workspace only. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "terrakube_collection_item" "sample1" { | ||
organization_id = data.terrakube_organization.org.id | ||
collection_id = terrakube_collection.sample1.id | ||
key = "sample-env-var" | ||
value = "sample-value2222" | ||
description = "sample env var" | ||
category = "ENV" | ||
sensitive = false | ||
hcl = false | ||
} | ||
resource "terrakube_collection_item" "sample2" { | ||
organization_id = data.terrakube_organization.org.id | ||
collection_id = terrakube_collection.sample1.id | ||
key = "sample-terra-var" | ||
value = "sample-TERRAFORM" | ||
description = "sample env var" | ||
category = "TERRAFORM" | ||
sensitive = false | ||
hcl = false | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `category` (String) Variable category (ENV or TERRAFORM). ENV variables are injected in workspace environment at runtime. | ||
- `collection_id` (String) Terrakube collection id | ||
- `description` (String) Variable description | ||
- `hcl` (Boolean) Parse this field as HashiCorp Configuration Language (HCL). This allows you to interpolate values at runtime. | ||
- `key` (String) Variable key | ||
- `organization_id` (String) Terrakube organization id | ||
- `sensitive` (Boolean) Sensitive variables are never shown in the UI or API. They may appear in Terraform logs if your configuration is designed to output them. | ||
- `value` (String) Variable value | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Collection Id | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Organization Workspace Variable can be import with organization_id,collection_id,id | ||
terraform import terrakube_workspace_variable.example 00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "terrakube_collection_reference Resource - terrakube" | ||
subcategory: "" | ||
description: |- | ||
Create collection reference that will be used by this workspace only. | ||
--- | ||
|
||
# terrakube_collection_reference (Resource) | ||
|
||
Create collection reference that will be used by this workspace only. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "terrakube_workspace_reference" "sample1" { | ||
organization_id = data.terrakube_organization.org.id | ||
collection_id = terrakube_collection.sample1.id | ||
workspace_id = terrakube_workspace_cli.sample1.id | ||
description = "sample description" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `collection_id` (String) Terrakube collection id | ||
- `description` (String) Variable description | ||
- `organization_id` (String) Terrakube organization id | ||
- `workspace_id` (String) Terrakube workspace id | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Reference Id | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Organization Workspace Variable can be import with organization_id,collection_id,workspace_id,id | ||
terraform import terrakube_workspace_variable.example 00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000,,00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000 | ||
``` |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Organization Workspace Variable can be import with organization_id,collection_id,id | ||
terraform import terrakube_workspace_variable.example 00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000 |
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
resource "terrakube_collection_item" "sample1" { | ||
organization_id = data.terrakube_organization.org.id | ||
collection_id = terrakube_collection.sample1.id | ||
key = "sample-env-var" | ||
value = "sample-value2222" | ||
description = "sample env var" | ||
category = "ENV" | ||
sensitive = false | ||
hcl = false | ||
} | ||
|
||
resource "terrakube_collection_item" "sample2" { | ||
organization_id = data.terrakube_organization.org.id | ||
collection_id = terrakube_collection.sample1.id | ||
key = "sample-terra-var" | ||
value = "sample-TERRAFORM" | ||
description = "sample env var" | ||
category = "TERRAFORM" | ||
sensitive = false | ||
hcl = false | ||
} |
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Organization Workspace Variable can be import with organization_id,collection_id,workspace_id,id | ||
terraform import terrakube_workspace_variable.example 00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000,,00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000 |
6 changes: 6 additions & 0 deletions
6
examples/resources/terrakube_collection_reference/resource.tf
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "terrakube_workspace_reference" "sample1" { | ||
organization_id = data.terrakube_organization.org.id | ||
collection_id = terrakube_collection.sample1.id | ||
workspace_id = terrakube_workspace_cli.sample1.id | ||
description = "sample description" | ||
} |
2 changes: 2 additions & 0 deletions
2
examples/resources/terrakube_organization_collection/import.sh
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Collection can be import with organization_id,id | ||
terraform import terrakube_collection.example 00000000-0000-0000-0000-000000000000,00000000-0000-0000-0000-000000000000 |
6 changes: 6 additions & 0 deletions
6
examples/resources/terrakube_organization_collection/resource.tf
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
resource "terrakube_collection" "collection" { | ||
name = "TERRAKUBE_SUPER_COLLECTION" | ||
organization_id = data.terrakube_organization.org.id | ||
description = "Hello World!" | ||
priority = 10 | ||
} |
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.