MongoDB

An opensource NoSQL database program. MongoDB uses JSON-like documents with optional schemas.

Example Usage


mongodb-integration.tf
resource "apono_integration" "mongodb-integration" {
  name                     = "MongoDB"
  type                     = "mongodb"
  connector_id             = "apono-connector-id"
  connected_resource_types = ["mongodb-cluster"]
  metadata = {
    hostname = "<Hostname>"
    port = "<Port>"
    credentials_rotation_period_in_days = "<Credentials rotation period (in days)>"
    credentials_cleanup_period_in_days = "<User cleanup after access is revoked (in days)>"
  }
  kubernetes_secret = {
    name      = "name_template_value"
    namespace = "namespace_template_value"
  }
}

Schema


  • type mongodb

  • connected_resource_types List of resource types to sync.

Available resource types you can use
  • mongodb-cluster

  • mongodb-database

  • mongodb-custom-role

Integration Config


  • hostname (Required | String) Hostname

  • port (Required | String) Port

    • Default value: 27017

  • credentials_rotation_period_in_days (Optional | String) Credentials rotation period (in days)

  • credentials_cleanup_period_in_days (Optional | String) User cleanup after access is revoked (in days)

Last updated

Was this helpful?