0
0
llucycodes42
This is an example of a resource definition for an RabbitMQ Exchange. The name attribute defines the name of the exchange, while the description attribute defines a description of the exchange. The vhost attribute defines the RabbitMQ server where the exchange is hosted, and the settings attribute defines the settings for the exchange.
Shortcut: tf_rabbitmq_exchange
resource "rabbitmq_exchange" "${myResourceName}" {
name = "my-${myResourceName}"
description = "my-description-${myResourceName}"
vhost = "\${rabbitmq_permissions.guest.vhost}"
settings {
type = "fanout"
durable = false
auto_delete = true
}
}