generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
1,065 additions
and
22 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,3 @@ | ||
```release-note:enhancement | ||
resource/harness_platform_triggers: added documentation links | ||
``` |
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,3 @@ | ||
```release-note:enhancement | ||
data-source/platform_manual_freeze - Added quarterly recurrence support for manual deployment freeze resource in Harness terraform provider | ||
``` |
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,3 @@ | ||
```release-note:new-resource | ||
platform_connector_tas - Added tas connector resource in Harness terraform provider | ||
``` |
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,61 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "harness_platform_connector_tas Data Source - terraform-provider-harness" | ||
subcategory: "Next Gen" | ||
description: |- | ||
Datasource for looking up an Tas Connector. | ||
--- | ||
|
||
# harness_platform_connector_tas (Data Source) | ||
|
||
Datasource for looking up an Tas Connector. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "harness_platform_connector_tas" "example" { | ||
identifier = "identifier" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `identifier` (String) Unique identifier of the resource. | ||
|
||
### Optional | ||
|
||
- `name` (String) Name of the resource. | ||
- `org_id` (String) Unique identifier of the organization. | ||
- `project_id` (String) Unique identifier of the project. | ||
|
||
### Read-Only | ||
|
||
- `credentials` (List of Object) Contains Tas connector credentials. (see [below for nested schema](#nestedatt--credentials)) | ||
- `delegate_selectors` (Set of String) Tags to filter delegates for connection. | ||
- `description` (String) Description of the resource. | ||
- `execute_on_delegate` (Boolean) Execute on delegate or not. | ||
- `id` (String) The ID of this resource. | ||
- `tags` (Set of String) Tags to associate with the resource. | ||
|
||
<a id="nestedatt--credentials"></a> | ||
### Nested Schema for `credentials` | ||
|
||
Read-Only: | ||
|
||
- `tas_manual_details` (List of Object) (see [below for nested schema](#nestedobjatt--credentials--tas_manual_details)) | ||
- `type` (String) | ||
|
||
<a id="nestedobjatt--credentials--tas_manual_details"></a> | ||
### Nested Schema for `credentials.tas_manual_details` | ||
|
||
Read-Only: | ||
|
||
- `endpoint_url` (String) | ||
- `password_ref` (String) | ||
- `username` (String) | ||
- `username_ref` (String) | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,110 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "harness_platform_connector_tas Resource - terraform-provider-harness" | ||
subcategory: "Next Gen" | ||
description: |- | ||
Resource for creating an Tas in Harness. | ||
--- | ||
|
||
# harness_platform_connector_tas (Resource) | ||
|
||
Resource for creating an Tas in Harness. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
# Create Tas connector using username as plain text and password ref | ||
resource "harness_platform_connector_tas" "tas" { | ||
identifier = "example_tas_cloud_provider" | ||
name = "Example tas cloud provider" | ||
description = "description of tas connector" | ||
tags = ["foo:bar"] | ||
credentials { | ||
type = "ManualConfig" | ||
tas_manual_details { | ||
endpoint_url = "https://tas.example.com" | ||
username = "admin" | ||
password_ref = "account.secret_id" | ||
} | ||
} | ||
} | ||
# Create Tas connector using username ref and password ref, and execute on delegate | ||
resource "harness_platform_connector_tas" "tas" { | ||
identifier = "example_tas_cloud_provider" | ||
name = "Example tas cloud provider" | ||
description = "description of tas connector" | ||
tags = ["foo:bar"] | ||
credentials { | ||
type = "ManualConfig" | ||
tas_manual_details { | ||
endpoint_url = "https://tas.example.com" | ||
username_ref = "account.username_id" | ||
password_ref = "account.secret_id" | ||
} | ||
} | ||
delegate_selectors = ["harness-delegate"] | ||
execute_on_delegate = true | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `credentials` (Block List, Min: 1, Max: 1) Contains Tas connector credentials. (see [below for nested schema](#nestedblock--credentials)) | ||
- `identifier` (String) Unique identifier of the resource. | ||
- `name` (String) Name of the resource. | ||
|
||
### Optional | ||
|
||
- `delegate_selectors` (Set of String) Tags to filter delegates for connection. | ||
- `description` (String) Description of the resource. | ||
- `execute_on_delegate` (Boolean) Execute on delegate or not. | ||
- `org_id` (String) Unique identifier of the organization. | ||
- `project_id` (String) Unique identifier of the project. | ||
- `tags` (Set of String) Tags to associate with the resource. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
|
||
<a id="nestedblock--credentials"></a> | ||
### Nested Schema for `credentials` | ||
|
||
Required: | ||
|
||
- `tas_manual_details` (Block List, Min: 1, Max: 1) Authenticate to Tas using manual details. (see [below for nested schema](#nestedblock--credentials--tas_manual_details)) | ||
- `type` (String) Type can be ManualConfig. | ||
|
||
<a id="nestedblock--credentials--tas_manual_details"></a> | ||
### Nested Schema for `credentials.tas_manual_details` | ||
|
||
Required: | ||
|
||
- `endpoint_url` (String) URL of the Tas server. | ||
- `password_ref` (String) Reference of the secret for the password. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. | ||
|
||
Optional: | ||
|
||
- `username` (String) Username to use for authentication. | ||
- `username_ref` (String) Reference to a secret containing the username to use for authentication. To reference a secret at the organization scope, prefix 'org' to the expression: org.{identifier}. To reference a secret at the account scope, prefix 'account` to the expression: account.{identifier}. | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
# Import account level tas connector | ||
terraform import harness_platform_connector_tas.example <connector_id> | ||
|
||
# Import organization level tas connector | ||
terraform import harness_platform_connector_tas.example <organization_id>/<connector_id> | ||
|
||
# Import project level tas connector | ||
terraform import harness_platform_connector_tas.example <organization_id>/<project_id>/<connector_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
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
3 changes: 3 additions & 0 deletions
3
examples/data-sources/harness_platform_connector_tas/data-source.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,3 @@ | ||
data "harness_platform_connector_tas" "example" { | ||
identifier = "identifier" | ||
} |
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,8 @@ | ||
# Import account level tas connector | ||
terraform import harness_platform_connector_tas.example <connector_id> | ||
|
||
# Import organization level tas connector | ||
terraform import harness_platform_connector_tas.example <organization_id>/<connector_id> | ||
|
||
# Import project level tas connector | ||
terraform import harness_platform_connector_tas.example <organization_id>/<project_id>/<connector_id> |
36 changes: 36 additions & 0 deletions
36
examples/resources/harness_platform_connector_tas/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,36 @@ | ||
# Create Tas connector using username as plain text and password ref | ||
|
||
resource "harness_platform_connector_tas" "tas" { | ||
identifier = "example_tas_cloud_provider" | ||
name = "Example tas cloud provider" | ||
description = "description of tas connector" | ||
tags = ["foo:bar"] | ||
credentials { | ||
type = "ManualConfig" | ||
tas_manual_details { | ||
endpoint_url = "https://tas.example.com" | ||
username = "admin" | ||
password_ref = "account.secret_id" | ||
} | ||
} | ||
} | ||
|
||
|
||
# Create Tas connector using username ref and password ref, and execute on delegate | ||
|
||
resource "harness_platform_connector_tas" "tas" { | ||
identifier = "example_tas_cloud_provider" | ||
name = "Example tas cloud provider" | ||
description = "description of tas connector" | ||
tags = ["foo:bar"] | ||
credentials { | ||
type = "ManualConfig" | ||
tas_manual_details { | ||
endpoint_url = "https://tas.example.com" | ||
username_ref = "account.username_id" | ||
password_ref = "account.secret_id" | ||
} | ||
} | ||
delegate_selectors = ["harness-delegate"] | ||
execute_on_delegate = true | ||
} |
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.