Skip to content

STACKIT Provider : Failing to create MongoDB Flex Instance #1772

Description

@saurabh2590

Description

  • We are using STACKIT Terraform provider version 0.115.0.
  • When we run terraform apply to create the mongodb flex instance we simply get 404 error with the message
    Calling API: 404 Not Found, status code 404, Body: {"message":"mongodb not │ found","code":404,"type":"NotFound"}
  • We also tried with version 0.114.0 and we received the same error message as above.

Steps to reproduce

  • Simply declare the MongoDB Flex instance in the terrafor code to create a new MongoFlex instance.
resource "stackit_mongodbflex_instance" "example" {
  project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  name       = "example-instance"
  acl        = ["0.0.0.0/0"]
  flavor = {
    cpu = 1
    ram = 4
  }
  replicas = 1
  storage = {
    class = "premium-perf2-mongodb"
    size  = 10
  }
  version = "7.0"
  options = {
    type                       = "Single"
    snapshot_retention_days    = 3
    point_in_time_window_hours = 30
  }
  backup_schedule = "0 0 * * *"
}

  1. Run terraform apply
  2. It produces the issue.
 with stackit_mongodbflex_instance.mongodb-cluster (mongodb-cluster),
│   on cdk.tf.json line 132, in resource.stackit_mongodbflex_instance.mongodb-cluster (mongodb-cluster):
│  132:       }
│ 
│ Calling API: 404 Not Found, status code 404, Body: {"message":"mongodb not
│ found","code":404,"type":"NotFound"}
│ 
│ 
│ Trace ID: "8eb72ba607dc14ea50e36e259d23936c"

Actual behavior

  • The STACKIT API is returning 404 even for the API calls.

Expected behaviour

  • The stack creation should simply succeed with creation of MongoDB flex instance.

Environment

  • OS: MacOS/Linux
  • Terraform version (see terraform --version): v1.15.2
  • Version of the STACKIT Terraform provider: v0.115.0 & v.114.0 as well

Additional information

  • It worked perfectly fine until this Wednesday.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions