-
Notifications
You must be signed in to change notification settings - Fork 40
Description
Problem description
The current stackit_mongodbflex_instance Terraform resource does not provide any mechanism to set database labels on the created MongoDB instances. This prevents us from distinguishing between created instances for operational purposes. The underlying STACKIT MongoDB Flex API, however, appears to support this functionality, as indicated by the API documentation (payload -> labels):
https://docs.api.eu01.stackit.cloud/documentation/mongodb-flex-service/version/v1#tag/instance/paths/~1v1~1projects~1%7BprojectId%7D~1instances/post
Proposed solution
We request the addition of an optional labels field to the stackit_mongodbflex_instance resource, allowing users to define arbitrary Key-Value pairs that are propagated to the underlying STACKIT resource for better instance organization.
resource "stackit_mongodbflex_instance" "example" {
project_id = "some.......id"
# instance-specific configuration...
# NEW FIELD REQUIRED
labels = {
"first" = "label"
"second" = "label"
}
}