Skip to content

Latest commit

 

History

History
79 lines (52 loc) · 1.77 KB

README-HEADER.md

File metadata and controls

79 lines (52 loc) · 1.77 KB

PBS TF SQS Module

Installation

Using the Repo Source

Use this URL for the source of the module. See the usage examples below for more details.

github.com/pbs/terraform-aws-sqs-module?ref=x.y.z

Alternative Installation Methods

More information can be found on these install methods and more in the documentation here.

Usage

Provisions an SQS queue.

Integrate this module like so:

module "queue" {
  source = "github.com/pbs/terraform-aws-sqs-module?ref=x.y.z"

  organization = var.organization
  environment  = var.environment
  product      = var.product
  repo         = var.repo
}

If you need to integrate a secondary queue as a dead letter queue, this would be a valid configuration:

module "queue" {
  source = "github.com/pbs/terraform-aws-sqs-module?ref=x.y.z"

  name = "my-queue"

  redrive_policy = jsonencode({
    deadLetterTargetArn = module.dlq.arn
    maxReceiveCount     = 5
  })

  organization = var.organization
  environment  = var.environment
  product      = var.product
  repo         = var.repo
}

module "dlq" {
  source = "github.com/pbs/terraform-aws-sqs-module?ref=x.y.z"

  name = "my-queue-dlq"

  organization = var.organization
  environment  = var.environment
  product      = var.product
  repo         = var.repo
}

Adding This Version of the Module

If this repo is added as a subtree, then the version of the module should be close to the version shown here:

x.y.z

Note, however that subtrees can be altered as desired within repositories.

Further documentation on usage can be found here.

Below is automatically generated documentation on this Terraform module using terraform-docs