-
Notifications
You must be signed in to change notification settings - Fork 62
Add support for sync resource in HCP Vault Secrets #1196
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 6 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6b2eafb
Add support for sync resource in HCP Vault Secrets
rodrigo-hcp c5478cc
Merge branch 'main' into new-sync-resource
rodrigo-hcp ae2358f
Address PR feedback and add missing field
rodrigo-hcp 5c6e4fc
Merge branch 'main' into new-sync-resource
rodrigo-hcp 15d208a
fix initModel in HVS's app resource
rodrigo-hcp acaae18
Reworking new HVS app tests
rodrigo-hcp 0b5cf25
Address PR feedback
rodrigo-hcp 8fd7739
fix new HVS sync resource creation
rodrigo-hcp 92ac02f
linter
rodrigo-hcp 97d4eac
fix HVS app creation w or w/o sync; adding and removing 1 or more syn…
rodrigo-hcp 7580642
Update docs
rodrigo-hcp 7aa1591
fix linter
rodrigo-hcp 38c2cea
Adjust to PR feedback
rodrigo-hcp c6e9699
Adjust to PR feedback. Part 2
rodrigo-hcp 08136dd
reorganize methods in the new HVS sync resource definition
rodrigo-hcp ccceb56
fix validation issues
rodrigo-hcp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,7 @@ | ||
| ```release-note:feature | ||
| Add support for sync resource in HCP Vault Secrets | ||
| ``` | ||
|
|
||
| ```release-note:improvement | ||
| Associate a sync with an HCP Vault Secrets App | ||
| ``` |
This file contains hidden or 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 hidden or 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 hidden or 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,59 @@ | ||
| --- | ||
| page_title: "Resource hcp_vault_secrets_sync" | ||
| subcategory: "HCP Vault Secrets" | ||
| description: |- | ||
| The Vault Secrets sync resource manages an integration. | ||
| --- | ||
|
|
||
| # hcp_vault_secrets_sync (Resource) | ||
|
|
||
| The Vault Secrets sync resource manages an integration. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| # the provider is derived from the integration name | ||
| resource "hcp_vault_secrets_sync" "example_aws_sync" { | ||
| name = "my-aws-1" | ||
| integration_name = "my-integration-1" | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `integration_name` (String) The Vault Secrets integration name. | ||
| - `name` (String) The Vault Secrets Sync name. | ||
|
|
||
| ### Optional | ||
|
|
||
| - `gitlab_config` (Attributes) Configuration parameters used to determine the sync destination. (see [below for nested schema](#nestedatt--gitlab_config)) | ||
| - `project_id` (String) HCP project ID that owns the HCP Vault Secrets integration. Inferred from the provider configuration if omitted. | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `id` (String) Required ID field that is set to the sync name. | ||
| - `organization_id` (String) HCP organization ID that owns the HCP Vault Secrets integration. | ||
|
|
||
| <a id="nestedatt--gitlab_config"></a> | ||
| ### Nested Schema for `gitlab_config` | ||
|
|
||
| Required: | ||
|
|
||
| - `scope` (String) The scope to which values apply. The valid options are GROUP and PROJECT | ||
|
|
||
| Optional: | ||
|
|
||
| - `group_id` (String, Sensitive) ID of the group, if the scope is GROUP | ||
| - `project_id` (String, Sensitive) ID of the project, if the scope is PROJECT | ||
|
|
||
| ## Import | ||
|
|
||
| Import is supported using the following syntax: | ||
|
|
||
| ```shell | ||
| # Vault Secrets Integration can be imported by specifying the name of the integration | ||
| terraform import hcp_vault_secrets_sync.example my-sync-name | ||
| ``` |
This file contains hidden or 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 @@ | ||
| # Vault Secrets Integration can be imported by specifying the name of the integration | ||
| terraform import hcp_vault_secrets_sync.example my-sync-name |
This file contains hidden or 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 @@ | ||
| # the provider is derived from the integration name | ||
| resource "hcp_vault_secrets_sync" "example_aws_sync" { | ||
| name = "my-aws-1" | ||
| integration_name = "my-integration-1" | ||
| } | ||
rodrigo-hcp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.