-
Notifications
You must be signed in to change notification settings - Fork 2
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 #63 from humanitec/WAL-8973-agents
feat: add agent resource
- Loading branch information
Showing
7 changed files
with
590 additions
and
2 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,52 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "humanitec_agent Resource - terraform-provider-humanitec" | ||
subcategory: "" | ||
description: |- | ||
An Agent represents an instance of the Humanitec Agent that will be used by the Platform Orchestrator to deploy into a private cluster. | ||
--- | ||
|
||
# humanitec_agent (Resource) | ||
|
||
An Agent represents an instance of the Humanitec Agent that will be used by the Platform Orchestrator to deploy into a private cluster. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "humanitec_agent" "example" { | ||
id = "agent-id" | ||
description = "Demo Agent" | ||
public_keys = [ | ||
{ | ||
key = "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtVChdg1SCUsMEs9Zuiuj\nRCNF7yGbLc+7GxchgsLrRhvqRjLkNh/757rS5Xb6fn5PSdV34iKsM1t/DNrohD6n\n/qO5CFT9PmJscG92ONNrma9Q+G2VqgOcQTBsvROnOXt3/sz3KxoVg7PH+dvpPOc2\na3vYI094OQ9290BtORer0gjdiacCadXlIucrfwQHHns5FUv8kui+AJ/EMRCGANkL\nW7V8sgrDJsazd9K+kZt6nBR2oalzmkTdS37hP1CqK2UzzZg+W2g6MjHIe6XfYqJa\nRnOSFM6sqRSXcgNH9ClUcCBvoDXtC1UxwIqstaHqXiEYiBntpHc9b7YxEfAs0Y3K\n574vbkN45hnx4q1je2Ajipfi6rCrD5krCZ3m00NtoddgjuTL4a5p9UxmC99WXacu\nxflmkpdYjI4fqvbZYBjc4JWuW95iW213BN2dlqQaEIKhepjROXc4D9AhMTjo4Vlr\nPrl32RuSLc+ZepP3KWxC/1X92PvHsrgQ09X4a1qZY8iBG468G6v2jOeJYTWDcXR+\nbEcw9ziXQtqwnI+PZEzDAJKNYA1VGSGQ1cr27aNUH6HcEb05mwIHXom7fYL1sEye\nWfJuEsiO2vlIh5L8FbyuNjafAPJHtw3TJAcq9JY7RGgM9fhc2NKLKnIKARBsycCS\nF+tcM6Fm/SqGiW7McuKcGsECAwEAAQ==\n-----END PUBLIC KEY-----\n" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `id` (String) The ID of the Agent. | ||
- `public_keys` (Attributes Set) A non-empty list of pcks8 RSA public keys PEM encoded (as the ones produced by openssl), whose module length is greater or equal than 4096 bits. (see [below for nested schema](#nestedatt--public_keys)) | ||
|
||
### Optional | ||
|
||
- `description` (String) A description to show future users. It can be empty. | ||
|
||
<a id="nestedatt--public_keys"></a> | ||
### Nested Schema for `public_keys` | ||
|
||
Required: | ||
|
||
- `key` (String) A pcks8 RSA public keys PEM encoded (as the ones produced by openssl), whose module length is greater or equal than 4096 bits. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import humanitec_agent.example agent_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 @@ | ||
terraform import humanitec_agent.example agent_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,9 @@ | ||
resource "humanitec_agent" "example" { | ||
id = "agent-id" | ||
description = "Demo Agent" | ||
public_keys = [ | ||
{ | ||
key = "-----BEGIN PUBLIC KEY-----\nMIICIjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEAtVChdg1SCUsMEs9Zuiuj\nRCNF7yGbLc+7GxchgsLrRhvqRjLkNh/757rS5Xb6fn5PSdV34iKsM1t/DNrohD6n\n/qO5CFT9PmJscG92ONNrma9Q+G2VqgOcQTBsvROnOXt3/sz3KxoVg7PH+dvpPOc2\na3vYI094OQ9290BtORer0gjdiacCadXlIucrfwQHHns5FUv8kui+AJ/EMRCGANkL\nW7V8sgrDJsazd9K+kZt6nBR2oalzmkTdS37hP1CqK2UzzZg+W2g6MjHIe6XfYqJa\nRnOSFM6sqRSXcgNH9ClUcCBvoDXtC1UxwIqstaHqXiEYiBntpHc9b7YxEfAs0Y3K\n574vbkN45hnx4q1je2Ajipfi6rCrD5krCZ3m00NtoddgjuTL4a5p9UxmC99WXacu\nxflmkpdYjI4fqvbZYBjc4JWuW95iW213BN2dlqQaEIKhepjROXc4D9AhMTjo4Vlr\nPrl32RuSLc+ZepP3KWxC/1X92PvHsrgQ09X4a1qZY8iBG468G6v2jOeJYTWDcXR+\nbEcw9ziXQtqwnI+PZEzDAJKNYA1VGSGQ1cr27aNUH6HcEb05mwIHXom7fYL1sEye\nWfJuEsiO2vlIh5L8FbyuNjafAPJHtw3TJAcq9JY7RGgM9fhc2NKLKnIKARBsycCS\nF+tcM6Fm/SqGiW7McuKcGsECAwEAAQ==\n-----END PUBLIC KEY-----\n" | ||
} | ||
] | ||
} |
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.