-
We want to use sqs/sns/sqs-sns-connection modules to create multiple channels. There is an example how to use for_each to create multiple copies of config. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @dbd-infra, you can use the Terraform The This example will create 3 sets of an SQS queue, SNS topic, and connection.
|
Beta Was this translation helpful? Give feedback.
Hi @dbd-infra, you can use the Terraform
for_each
argument directly with those modules. Here's a (simplified) example:The
locals
block here is just an example input of thefor_each
argument. You could also set this through variablesThis example will create 3 sets of an SQS queue, SNS topic, and connection.