Code Monkey home page Code Monkey logo

terraform-aws-memorydb-cluster's Introduction

Geek Cell GmbH

Code Quality

License GitHub release (latest tag) Release Validate Lint

Terraform AWS MemoryDB Cluster

Terraform module which creates a MemoryDB Cluster. The focus on this module lies within it's simplicity by providing default values that should make sense for most use cases.

Inputs

Name Description Type Default Required
auto_minor_version_upgrade When set to true, the cluster will automatically receive minor engine version upgrades after launch. bool true no
description Description for the cluster. string n/a yes
engine_version Version number of the Redis engine to be used for the cluster. string n/a yes
maintenance_window Specifies the weekly time range during which maintenance on the cluster is performed. string "sun:23:00-mon:01:30" no
name Name of the cluster. string n/a yes
node_type The compute and memory capacity of the nodes in the cluster. string n/a yes
num_replicas_per_shard The number of replicas to apply to each shard. number n/a yes
num_shards The number of shards in the cluster. number n/a yes
parameters A list of parameters to apply to the cluster.
list(object({
name = string
value = string
}))
[
{
"name": "activedefrag",
"value": "yes"
}
]
no
port The port number on which each of the nodes accepts connections. number 6379 no
recipients List of email addresses to notify when the cluster is in an unhealthy state. list(string) [] no
security_group_ids Set of VPC Security Group ID-s to associate with this cluster. list(string) n/a yes
snapshot_retention_limit The number of days for which MemoryDB retains automatic snapshots before deleting them. number 0 no
snapshot_window The daily time range (in UTC) during which MemoryDB begins taking a daily snapshot of your shard. string "05:00-09:00" no
subnet_ids List of VPC subnet ID-s to associate with this cluster. list(string) n/a yes
tags Tags to add to the AWS Customer Managed Key. map(any) {} no
tls_enabled A flag to enable in-transit encryption on the cluster. bool true no
users A map of users to create in the cluster.
map(
object(
{
access_string = string,
tags = map(string)
}
)
)
{
"admin": {
"access_string": "on ~* &* +@all",
"tags": {
"user": "admin"
}
},
"readonly": {
"access_string": "on ~* &* -@all +@read",
"tags": {
"user": "readonly"
}
}
}
no

Outputs

Name Description
arn The ARN of the cluster.
cluster_endpoint_address DNS hostname of the cluster configuration endpoint.
cluster_endpoint_port Port number that the cluster configuration endpoint is listening on.
name The name of the Memory DB Cluster.

Providers

Name Version
aws >= 4.36

Resources

  • resource.aws_memorydb_cluster.main (main.tf#7)

Examples

Full

module "basic-example" {
  source = "../../"

  description            = "PHP Sessions"
  engine_version         = "6.2"
  name                   = "session"
  node_type              = "db.t4g.small"
  num_replicas_per_shard = 0
  num_shards             = 1
  security_group_ids     = ["sg-123456789"]
  subnet_ids             = ["subnet-123456789", "subnet-987654321"]
}

terraform-aws-memorydb-cluster's People

Contributors

github-actions[bot] avatar ic3w0lf avatar janvt avatar

Watchers

 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.