generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 50
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 #120 from hashicorp/sync-public-and-internal-provider
[auto] Sync with Public Provider
- Loading branch information
Showing
97 changed files
with
2,079 additions
and
689 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
page_title: "Data Source hcp_vault_secrets_secret - terraform-provider-hcp" | ||
subcategory: "" | ||
description: |- | ||
The Vault Secrets secret data source retrieves a singular secret and its latest version. | ||
--- | ||
|
||
# hcp_vault_secrets_secret (Data Source) | ||
|
||
The Vault Secrets secret data source retrieves a singular secret and its latest version. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "hcp_vault_secrets_secret" "example" { | ||
app_name = "example-vault-secrets-app" | ||
secret_name = "my_secret" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `app_name` (String) The name of the Vault Secrets application. | ||
- `secret_name` (String) The name of the Vault Secrets secret. | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The ID of this resource. | ||
- `organization_id` (String) The ID of the HCP organization where the Vault Secrets app is located. | ||
- `project_id` (String) The ID of the HCP project where the Vault Secrets app is located. | ||
- `secret_value` (String, Sensitive) The secret value corresponding to the secret name input. |
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,36 @@ | ||
--- | ||
page_title: "Resource hcp_vault_secrets_app - terraform-provider-hcp" | ||
subcategory: "" | ||
description: |- | ||
The Vault Secrets app resource manages an application. | ||
--- | ||
|
||
# hcp_vault_secrets_app (Resource) | ||
|
||
The Vault Secrets app resource manages an application. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "hcp_vault_secrets_app" "example" { | ||
app_name = "example-app-name" | ||
description = "My new app!" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `app_name` (String) The Vault Secrets App name. | ||
|
||
### Optional | ||
|
||
- `description` (String) The Vault Secrets app description | ||
|
||
### Read-Only | ||
|
||
- `id` (String) Required ID field that is set to the app name. | ||
- `organization_id` (String) The ID of the HCP organization where the project the HCP Vault Secrets app is located. | ||
- `project_id` (String) The ID of the HCP project where the HCP Vault Secrets app is located. |
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,37 @@ | ||
--- | ||
page_title: "Resource hcp_vault_secrets_secret - terraform-provider-hcp" | ||
subcategory: "" | ||
description: |- | ||
The Vault Secrets secret resource manages a secret within a given application. | ||
--- | ||
|
||
# hcp_vault_secrets_secret (Resource) | ||
|
||
-> **Note:** Please treat your state file as sensitive when using this resource. | ||
|
||
The Vault Secrets secret resource manages a secret within a given application. | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "hcp_vault_secrets_secret" "example" { | ||
app_name = "example-app-name" | ||
secret_name = "example_secret" | ||
secret_value = "hashi123" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `app_name` (String) The name of the application the secret can be found in | ||
- `secret_name` (String) The name of the secret | ||
- `secret_value` (String, Sensitive) The value of the secret | ||
|
||
### Read-Only | ||
|
||
- `id` (String) The id of the resource | ||
- `organization_id` (String) The ID of the HCP organization where the project the HCP Vault Secrets secret is located. | ||
- `project_id` (String) The ID of the HCP project where the HCP Vault Secrets secret is located. |
4 changes: 4 additions & 0 deletions
4
examples/data-sources/hcp_vault_secrets_secret/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,4 @@ | ||
data "hcp_vault_secrets_secret" "example" { | ||
app_name = "example-vault-secrets-app" | ||
secret_name = "my_secret" | ||
} |
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,4 @@ | ||
resource "hcp_vault_secrets_app" "example" { | ||
app_name = "example-app-name" | ||
description = "My new app!" | ||
} |
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,5 @@ | ||
resource "hcp_vault_secrets_secret" "example" { | ||
app_name = "example-app-name" | ||
secret_name = "example_secret" | ||
secret_value = "hashi123" | ||
} |
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.