-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem description
We need to add the createrole role to our Postgres user which is currently not possible via terraform.
Currently, we are doing this with a custom script and call to the api (https://postgres-flex-service.api.stackit.cloud/v3alpha1) and it works.
Proposed solution
It would be great to be able to add this via terraform.
Would it be possible to remove the restrictions from which roles are allwed and let the API do the validation? Similarly to this PR:
resource "stackit_postgresflex_user" "master" {
project_id = var.project_id
instance_id = stackit_postgresflex_instance.db.instance_id
username = "master"
roles = ["login", "createdb", "createrole"]
region = "eu01"
}Additional information
If it's fine to remove the restrictions from the provider and leave the validation up to the API I'm happy to supply a PR. Just let me know.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request