Skip to content

rso_queue_credential (Resource)

An AMQP login for the tenant's queues, for a workload that needs acknowledgements or a long-lived consumer.

The login reaches every queue and topic of the tenant, works from inside the platform's cluster only, and cannot declare queues or exchanges: declare them with rso_queue and rso_topic and let the client use passive declares.

~> The password is shown once, at creation, and is stored in the Terraform state. It cannot be imported.

Example Usage

resource "rso_queue_credential" "worker" {
  name = "worker"
}

# Hand the connection string to an app as a secret.
resource "rso_secret" "amqp" {
  name = "worker-amqp"
  data = {
    AMQP_URL = rso_queue_credential.worker.uri
  }
}

Schema

Required

  • name (String) Credential name, unique within the tenant.

Read-Only

  • host (String) Broker host name inside the cluster.
  • id (String) Same as name.
  • password (String, Sensitive) AMQP password.
  • port (Number) Broker port.
  • uri (String, Sensitive) Complete amqp:// connection string, password included.
  • username (String) AMQP user name.
  • vhost (String) The tenant's virtual host.