Creates a MongoDB Atlas Secret Backend for Vault.
resource "vault_mount" "mongo" {
path = "mongodbatlas"
type = "mongodbatlas"
description = "MongoDB Atlas secret engine mount"
}
resource "vault_mongodbatlas_secret_backend" "config" {
mount = vault_mount.mongo.path
private_key = "privateKey"
public_key = "publicKey"
}
The following arguments are supported:
namespace
- (Optional) The namespace to provision the resource in.
The value should not contain leading or trailing forward slashes.
The namespace
is always relative to the provider's configured namespace.
Available only for Vault Enterprise.
mount
- (Required) Path where the MongoDB Atlas Secrets Engine is mounted.
private_key
- (Required) Specifies the Private API Key used to authenticate with the MongoDB Atlas API.
public_key
- (Required) Specifies the Public API Key used to authenticate with the MongoDB Atlas API.
No additional attributes are exported by this resource.
MongoDB Atlas secret backends can be imported using the ${mount}/config
, e.g.
$ terraform import vault_mongodbatlas_secret_backend.config mongodbatlas/config