terraform-provider-ironmq is a plugin of Terraform. It allows you to manage queues in IronMQ with Terraform.
Experimental.
The resource configuration schema can change without notice nor migration support.
go get github.com/gengo/terraform-provider-ironmq
Then, copy $GOPATH/bin/terraform-provider-ironmq
into the same directory as terraform
binary.
At first, put a valid client configuration of IronMQ into a right place.
Then you can run terraform
command as usual.
example.tf:
provider "ironmq" {
}
# Pull queues
resource "ironmq_queue" "pull-example1" {
name = "pull-example1"
}
resource "ironmq_queue" "pull-example2" {
name = "pull-example2"
}
# Push queue
resource "ironmq_queue" "push-example" {
name = "push-example"
type = "multicast"
push {
subscribers {
url = "ironmq:///pull-example1"
}
subscribers {
url = "ironmq:///pull-example2"
}
}
}
env
- (Optional) environment name defined in the IronMQ client configuration.
This plugin provides a resource type named ironmq_queue
.
It supports the following arguments:
name
- (Required, string) The name of the queue.type
- (Optional, string) The type of the queue. Must be eitherpull
,unicast
ormulticast
.pull
is the default value.push
- (Optional, object) See below. It is required unlesstype
ispull
.
The push
argument supports the following nested arguments.
subscribers
- (Requried, List of objects) See below.
The push.subscribers
argument supports the following nested arguments.
url
- (Required, string) The URL of the subscriber endpoint.
terraform-provider-ironmq is licensed under Mozilla Public License, version 2.0.
See LICENSE.txt
for more details.