Home > OS >  How to specify on sqs to create resources with the count element
How to specify on sqs to create resources with the count element

Time:10-13

I am sorry to ask this question but can anyone tell me what this mean?

resource "aws_sqs_queue" "CloudTrail_SQS"
  count   = var.enabled ? 1 : 0

what does the 1 and 0 represent?

CodePudding user response:

In this case, count is being used to create resources conditionally. If enabled is true, it creates one resource. If enabled is false, the resource is not created.

  • Related