Provision the streams and buckets
This guide creates the streams and buckets that your config file names, and checks them before you deploy. The gateway never creates, changes or deletes a stream or a bucket. You decide their limits.
Before you start, you need:
- Your config file.
- The
mq-gatewaybinary. - The
natsCLI, NACK or the JetStream Terraform provider. - A NATS user that can create streams in each account that the gateway serves.
1. Generate the resources
generate reads the config file and prints the streams and buckets in the
format of your tool:
mq-gateway generate --config gateway.yaml --format nats-cli > provision.sh
For NACK manifests, use --format nack. For Terraform, use --format terraform. Names, subjects and domains come from the config file.
Each stream has deny delete and deny purge set. With these settings, the gateway acknowledges stored deliveries in batches. You cannot clear these settings after you create the stream.