-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding support to manage self hosted agents (#89)
- Loading branch information
Showing
6 changed files
with
414 additions
and
0 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,45 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "terrakube_self_hosted_agent Resource - terrakube" | ||
subcategory: "" | ||
description: |- | ||
Resource for managing self hosted agents in Terrakube. This resource allows you to create, read, update, and delete self hosted agents within a specified organization. | ||
--- | ||
|
||
# terrakube_self_hosted_agent (Resource) | ||
|
||
Resource for managing self hosted agents in Terrakube. This resource allows you to create, read, update, and delete self hosted agents within a specified organization. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "terrakube_self_hosted_agent" "collection" { | ||
name = "MY-SUPER-AGENT" | ||
organization_id = data.terrakube_organization.org.id | ||
description = "Hello World!" | ||
url = "http://localhost:8090" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `description` (String) Description of the self hosted agent | ||
- `name` (String) Self hosted agent name | ||
- `organization_id` (String) Terrakube organization id | ||
- `url` (String) Url of the self hosted agent | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Agent Id | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Collection can be import with organization_id,id | ||
terraform import terrakube_self_hosted_agent.example 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,2 @@ | ||
# Collection can be import with organization_id,id | ||
terraform import terrakube_self_hosted_agent.example 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,6 @@ | ||
resource "terrakube_self_hosted_agent" "collection" { | ||
name = "MY-SUPER-AGENT" | ||
organization_id = data.terrakube_organization.org.id | ||
description = "Hello World!" | ||
url = "http://localhost:8090" | ||
} |
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.