-
Notifications
You must be signed in to change notification settings - Fork 540
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
vault_database_secret_backend_connection don't accept plugin_name key #607
Comments
Is there an update on this now that mongodb atlas is officially supported it would be good if we could use terraform for this. |
Any updates on this...? Definitely needed for managing the setup with Terraform... |
Closed by #1320 |
Hi @benashz, how are you? I have configured my terraform file by passing the value "plugin_name" but it is not recognized in the "terraform plan" command. I'm using version 3.2.1 (required provider - main.tf) in my code. How do I make use of this feature? This is my block code resource. resource "vault_database_secret_backend_connection" "mongodbatlas" { My config Terraform Terraform v1.1.6 I tried without passing "plugin_name" and result is: I appreciate your support! Thanks. |
Hi @pedroduarteid , this is fixed in https://github.com/hashicorp/terraform-provider-vault/releases/tag/v3.3.0 . Please let us know if you continue to encounter this issue. Thanks, Ben |
Hi @benashz Thanks, |
Hi @benashz I evaluated and the command "terraform apply" shows the error below. Using the "vault write..." command I configured the database engine to mongodbatlas normally. However, I believe there is some configuration missing to be able to run through terraform. But I could not find any parameters for that. Documents I've consulted.: |
HI @pedroduarteid , I think you might be missing database specific configuration. See https://registry.terraform.io/providers/hashicorp/vault/latest/docs/resources/database_secret_backend_connection#mongodb-atlas-configuration-options for more details. |
I think you only need to move Example: resource "vault_database_secret_backend_connection" "test" {
backend = vault_mount.db.path
name = "...."
mongodbatlas {
public_key = "your public key"
private_key = "your private key"
project_id = "your project ID"
}
} |
You need to pass a string for all those fields. What you have there are lists, which is not what the provider expects. |
Yes, @benashz The values are passing in time of execution with "terraform apply" to nothing save inside files config. Thanks! |
Terraform Version
vault v0.12.12
provider.vault v2.6.0
Affected Resource(s)
vault_database_secret_backend_connection
Terraform Configuration Files
Expected Behavior
Resource should accept plugin_name property to pass custom plugins
Actual Behavior
An argument named "plugin_name" is not expected here.
I also tried with plugin_name in the data field but had the error Error: at least one database plugin must be configured
The text was updated successfully, but these errors were encountered: