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

error setting no_default_alarms for resource #98

Closed robinvdvleuten closed 3 years ago

robinvdvleuten commented 3 years ago

When I use the cloudamqp_instance data source, I get the following error on Terraform;

error setting no_default_alarms for resource ***: Invalid address to set: []string{"no_default_alarms"}

Looks like an internal type is invalid?

dentarg commented 3 years ago

Can you give a more complete example? Or contact our support and share the name of your instance so we can look into it. Thanks.

robinvdvleuten commented 3 years ago

Sure! I create in one workspace a CloudAMQP instance like this;

resource "cloudamqp_instance" "this" {
  name   = local.name
  plan   = var.cloudamqp_plan
  region = "amazon-web-services::${data.aws_region.current.name}"
}

And then in a separate workspace, I try to access the instance by creating a data source like this;

data "cloudamqp_instance" "this" {
  instance_id = var.cloudamqp_instance_id
}

But then I run into this no_default_alarms issue.

robinvdvleuten commented 3 years ago

The CloudAMQP instance is created as expected btw, but I cannot use it as a data source.

tbroden84 commented 3 years ago

@robinvdvleuten We have now made a new release v1.11.0 that contains the update for this. The no_default_alarm attribute was missing from the schema used for the data source.