Code Monkey home page Code Monkey logo

aws-sre-redis-cluster's Introduction

Elastic Cache (Redis) Module for SRE's

Features by Default

  • Cluster Mode
  • Encryption at rest
  • Automatic Failover
  • Multi-AZ
  • Security Group / Access Compliance
  • Transit Encryption
  • Shardings
  • Cloudwatch Metrics
  • Custom Parameter Groups

Variables

Variable Default Required Type Additional Info
name NA yes string
node_type NA yes string See Node Types
vpc NA yes string VPC ID
subnets NA yes list Subnet ID's
redis_version 6.x no string
family redis6.x no string
multi_az true no bool
cluster_mode true no bool
shards 1 no number
replicas_per_shard 2 no number
port 6379 no number
kms_key NA no string If you don't inform, one KMS key will be created
automatic_failover_enabled true no bool
cidrs_to_allow [] no list CIDR's to allow inbound and outbound traffic; if you don't inform, VPC Ranges will be enable
security_groups_to_allow [] no list Security group ID's to enable inbound and outbound traffic
tags {} no map(any) Tags to resources

Outputs

Variable Value
cluster aws_elasticache_replication_group.main
parameter_group aws_elasticache_parameter_group.main
security_group security_group

Usage

module "compliance_redis" {
    source = "github.com/production-ready-toolkit/aws-sre-redis-cluster"

    name        = "app-x-redis"
    node_type   = "cache.t2.micro"

    vpc         = "vpc-ba8b92c1"

    shards              = 2
    replicas_per_shard  = 3

    subnets     = [
        "subnet-1198752f",
        "subnet-c832eeaf",
        "subnet-f634adf9"
    ]

    tags        = {
        "environment" = "production"
    }
}

Examples

aws-sre-redis-cluster's People

Contributors

msfidelis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

aws-sre-redis-cluster's Issues

Feature request: cloudwatch alarms and SNS topics

Cloudwatch alarms using common dimensions from Redis like:

  • DatabaseMemoryUsagePercentage
  • BytesUsedForCache
  • StringBasedCmdsLatency
  • CPUUtilization
  • EngineCPUUtilization

Referencehttps://aws.amazon.com/pt/blogs/database/monitoring-best-practices-with-amazon-elasticache-for-redis-using-amazon-cloudwatch/

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.