cloudamqp / terraform-provider-cloudamqp

Terraform Provider for CloudAMQP
https://registry.terraform.io/providers/cloudamqp/cloudamqp
Mozilla Public License 2.0
35 stars 39 forks source link

Using plan "tiger" results in number of nodes error #165

Closed tomer-ds closed 2 years ago

tomer-ds commented 2 years ago

Hi...

We have this configuration

resource "cloudamqp_instance" "instance" {
  count = var.create_camqp_instance == true && var.create_camqp_vpc == false ? 1 : 0

  name        = local.full_environment_name
  plan        = var.camqp_instance_plan_name
  region      = join("::", ["amazon-web-services", var.aws_region])
  rmq_version = var.camqp_instance_version
}

And this configuration:

var.create_camqp_instance = true
var.create_camqp_vpc = false
local.full_environment_name = "Some-Env"
var.camqp_instance_plan_name = "tiger"
var.aws_region = "eu-west-2"
var.camqp_instance_version =  "" # this takes the default version

I keep getting this error

Error: CreateInstance failed, status: 400, message: map[errors:[map[nodes:Invalid number of nodes]]]

Expected behaviour:

Actual result:

Maybe something I misconfigured

tbroden84 commented 2 years ago

@tomer-ds Yes is a misconfiguration, where nodes are provided to our backend. Should not be the case for shared plan. Will take a look at the issue.

tbroden84 commented 2 years ago

@tomer-ds Added a fix to this and created a new release v1.19.1.