Skip to content

MariaDB: Paramater Database does not work in Terraform #1429

@alexrothgit

Description

@alexrothgit

Description

It is possible to create (and delete) databases in the portal (JSON window for parameter changes) or via API call.
It is documented for the portal but forgotten in the API docs.

Terraform docs also does not document the databases parameter and it is also not working in terraform.

As the API (and the portal) works fine, I call it a bug (related to the missing API documentation).

Steps to reproduce

# put your terraform example here
resource "stackit_mariadb_instance" "new" {
  project_id = "d2fcea2d-fd52-4589-9b74-9d9dbd87fd67"
  name       = "maria-test-2"
  version    = "10.11"
  plan_name  = "stackit-mariadb-1.2.10-replica" 
  parameters = {
    sgw_acl = "193.148.160.0/19,45.129.40.0/21,45.135.244.0/22",
    databases = [ "db1", "testdb2" ]
  }
}
  1. Run terraform apply
  2. check in Mariadb instance

Actual behavior

As said, API call creates a database, but Terraform does not.

Expected behavior

Terraform accepts the parameter databases and send correctly to the API. API is handling the parameter correct.

Environment

  • OS: WSL Ubuntu 24.04
  • Terraform v1.14.9
  • stackitcloud/stackit v0.93.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions