GithubHelp home page GithubHelp logo

production-ready-toolkit / aws-sre-sqs Goto Github PK

View Code? Open in Web Editor NEW
8.0 4.0 2.0 11 KB

Terraform module to deploy SQS Queues using the best pratices by default

License: MIT License

HCL 100.00%
sqs-queue aws terraform terraform-module sre cloud pubsub

aws-sre-sqs's Introduction

Simple Queue Service (SQS) Module for SRE's

Features by Default

  • Encryption at rest
  • Dead-Letter Queue
  • Optimization for Long Polling
  • Content-based Deduplication for FIFO Mode
  • High throughput optimization for FIFO queues

Variables

Variable Default Required Type Additional Info
name NA yes string
fifo false no bool
max_retry 3 no number
delay 0 no number
expiration_time_seconds 86400 no number
receive_wait_time_seconds 20 no number
max_message_size 262144 no number
visibility_timeout 60 no number
kms_key "" no string
kms_cache_time 3600 no number
fifo_deduplication_scope messageGroup no string
fifo_throughput_limit perMessageGroupId no string
tags {} no map(any) Tags to resources
--- --- --- --- ---
delay_dlq 900 no number
expiration_time_seconds_dlq 1209600 no number
receive_wait_time_seconds_dlq 20 no number
visibility_timeout_dlq 180 no number

Outputs

Variable Value
queue aws_sqs_queue.main
dlq aws_sqs_queue.dlq
kms aws_kms_key.main

Basic Usage

module "dummy" {
    source      = "github.com/production-ready-toolkit/aws-sre-sqs"

    name                = "dummy"
    max_retry           = 3
    visibility_timeout  = 30
    tags        = {
        "environment" = "production"
    }
}

Basic usage for FIFO Queues Support

module "dummy_fifo" {
    source      = "github.com/production-ready-toolkit/aws-sre-sqs"

    name                = "example"

    fifo                = true
    visibility_timeout  = 30
    max_retry           = 3
    
    tags        = {
        "environment" = "production"
    }
}

Examples

Todo

  • ...

aws-sre-sqs's People

Contributors

msfidelis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.