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 Enabling Plugin #45

Closed marvinestreet closed 4 years ago

marvinestreet commented 4 years ago

I'm getting an error when I attempt to install / enable the rabbitmq_prometheus plugin. Version: 1.4.1 Darwin (Downloaded)

I'm attempting to install / enable the plugin with this configuration:

# Enable the Prometheus plugin for metrics
resource "cloudamqp_plugin" "prometheus_plugin" {
  instance_id = cloudamqp_instance.rabbitmq.id
  name        = "rabbitmq_prometheus"
  enabled     = true
}

When I run terraform apply, I get the following error:

Error: json: cannot unmarshal array into Go value of type map[string]interface {}

  on modules/rabbitmq/main.tf line 27, in resource "cloudamqp_plugin" "prometheus_plugin":
  27: resource "cloudamqp_plugin" "prometheus_plugin" {
marvinestreet commented 4 years ago

This plugin doesn't work in 3.7

tbroden84 commented 4 years ago

Correct, it's available from 3.8.0. Should on the other hand present a better error message.