Onboard MongoDB Flex user (#88)
* Onboard user * Add examples and generate docs * Adjustments after review
This commit is contained in:
parent
2ddeb17d8a
commit
20f3496242
17 changed files with 1672 additions and 1 deletions
|
|
@ -0,0 +1,5 @@
|
|||
data "stackit_mongodbflex_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
user_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
data "stackit_mongodbflex_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
instance_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
}
|
||||
18
examples/resources/stackit_mongodbflex_instance/resource.tf
Normal file
18
examples/resources/stackit_mongodbflex_instance/resource.tf
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
resource "stackit_mongodbflex_instance" "example" {
|
||||
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
|
||||
name = "example-instance"
|
||||
acl = ["XXX.XXX.XXX.X/XX", "XX.XXX.XX.X/XX"]
|
||||
flavor = {
|
||||
cpu = 1
|
||||
ram = 8
|
||||
}
|
||||
replicas = 1
|
||||
storage = {
|
||||
class = "class"
|
||||
size = 10
|
||||
}
|
||||
version = "5.0"
|
||||
options = {
|
||||
type = "Single"
|
||||
}
|
||||
}
|
||||
7
examples/resources/stackit_mongodbflex_user/resource.tf
Normal file
7
examples/resources/stackit_mongodbflex_user/resource.tf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
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"
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue