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

Fix Stackdriver optional arugments assignments #198

Closed tbroden84 closed 1 year ago

tbroden84 commented 1 year ago

Previous fix: https://github.com/cloudamqp/terraform-provider-cloudamqp/commit/4c7b852d97218af5b5d22d73b52641021e818a1f to correct the optional arguments queue/vhost by converting into JSON fileds. Introduced new issues by assigning wrong values during create/update including tags: https://github.com/cloudamqp/terraform-provider-cloudamqp/issues/195

New fix to make sure all allowed optional arguments can be used.

resource "cloudamqp_integration_metric" "stackdriver" {
  instance_id = cloudamqp_instance.instance.id
  name = "stackdriver"
  credentials = google_service_account_key.service_account_key.private_key
  queue_allowlist = "<queue-regex>""
  vhost_allowlist = "<vhost-regex>"
  tags = "foo=bar"
}