terraform-provider-stackitp.../docs/resources/mongodbflex_user.md
GokceGK 043f1d6331
Add uri to user resources for MongoDB Flex and PostgreSQL Flex (#512)
* add uri to mongodb user resource

* add uri to postgresflex user resource

* update docs

* extend warning about empty uri

* extend warning about empty uri
2024-08-23 09:41:49 +02:00

1.3 KiB

page_title subcategory description
stackit_mongodbflex_user Resource - stackit MongoDB Flex user resource schema. Must have a region specified in the provider configuration.

stackit_mongodbflex_user (Resource)

MongoDB Flex user resource schema. Must have a region specified in the provider configuration.

Example Usage

resource "stackit_mongodbflex_user" "example" {
  project_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  username    = "username"
  roles       = ["role"]
  database    = "database"
}

Schema

Required

  • database (String)
  • instance_id (String) ID of the MongoDB Flex instance.
  • project_id (String) STACKIT project ID to which the instance is associated.
  • roles (Set of String) Database access levels for the user. Some of the possible values are: [read, readWrite, readWriteAnyDatabase]

Optional

  • username (String)

Read-Only

  • host (String)
  • id (String) Terraform's internal resource ID. It is structured as "project_id,instance_id,user_id".
  • password (String, Sensitive)
  • port (Number)
  • uri (String, Sensitive)
  • user_id (String) User ID.