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.
* Fix documentation template * Add changelog
- Loading branch information
1 parent
d6c236e
commit 19d419e
Showing
5 changed files
with
74 additions
and
13 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,4 @@ | ||
```release-note:bug | ||
Fix documentation of hcp_vault_secrets_app_iam_binding and hcp_vault_secrets_app_iam_policy | ||
|
||
``` |
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 |
---|---|---|
@@ -1,19 +1,41 @@ | ||
--- | ||
page_title: "{{.Type}} {{.Name}} - {{.ProviderName}}" | ||
page_title: "Resource hcp_vault_secrets_app_iam_binding - terraform-provider-hcp" | ||
subcategory: "Cloud Platform" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
Updates the Vault Secrets App IAM policy to bind a role to a new member. Existing bindings are preserved. | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
# hcp_vault_secrets_app_iam_binding (Resource) | ||
|
||
{{ .Description | trimspace }} | ||
Updates the Vault Secrets App IAM policy to bind a role to a new member. Existing bindings are preserved. | ||
|
||
~> **Note:** `hcp_vault_secrets_app_iam_binding` cannot be used in conjunction with | ||
`hcp_vault_secrets_app_iam_policy`. | ||
|
||
## Example Usage | ||
|
||
{{ tffile "examples/resources/hcp_vault_secrets_app_iam_binding/resource.tf" }} | ||
```terraform | ||
resource "hcp_service_principal" "sp" { | ||
name = "example-sp" | ||
} | ||
{{ .SchemaMarkdown | trimspace }} | ||
resource "hcp_vault_secrets_app" "example" { | ||
app_name = "example-app-name" | ||
description = "My new app!" | ||
} | ||
resource "hcp_vault_secrets_app_iam_binding" "example" { | ||
resource_name = hcp_vault_secrets_app.example.resource_name | ||
principal_id = hcp_service_principal.sp.resource_id | ||
role = "roles/secrets.app-secret-reader" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- `principal_id` (String) The principal to bind to the given role. | ||
- `resource_name` (String) The app's resource name in the format secrets/project/<project ID>/app/<app Name>. | ||
- `role` (String) The role name to bind to the given principal. |
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
File renamed without changes.
File renamed without changes.