Exposing local flag on vault_mount resource #462
Merged
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.
We've encountered an issue where the
-local
flag is supported by Vault API as well as CLI according to this document belowhttps://learn.hashicorp.com/vault/operations/mount-filter#cli-command-3
Current version of terraform-provider-vault does not support this attribute
https://www.terraform.io/docs/providers/vault/r/mount.html
I have examined the source code in Vault API and found that the data structure
MountInput
has already accommodated this flag hence API is working, only the provider is not currently exposing the flag at thevault_mount
resource.The file
resource_mount.go
is modified to allow flaglocal
as boolean type as optional for cluster environment, in case local mount is required, to pass through to API viaMountInput
data structure. Please review and share comment if any concern.