Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: terraform-community-modules/tf_aws_elasticache_redis
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: promoboxx/terraform-aws-elasticache-redis-module
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 5 commits
  • 3 files changed
  • 3 contributors

Commits on Dec 19, 2018

  1. add tag support

    ajbosco committed Dec 19, 2018

    Verified

    This commit was signed with the committer’s verified signature.
    ajbosco Adam Boscarino
    Copy the full SHA
    23ae4f4 View commit details
  2. Merge pull request #1 from Promoboxx/add_tag_support

    add tag support
    ajbosco authored Dec 19, 2018

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    e07fa69 View commit details

Commits on Jan 30, 2019

  1. Copy the full SHA
    00ddc22 View commit details
  2. update variable description

    chtorr committed Jan 30, 2019
    Copy the full SHA
    2da1b2e View commit details

Commits on Feb 3, 2019

  1. Merge pull request #2 from promoboxx/allow-snapshot-restore

    Allow snapshot restore
    chtorr authored Feb 3, 2019

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    8ac7102 View commit details
Showing with 15 additions and 0 deletions.
  1. +2 −0 README.md
  2. +2 −0 main.tf
  3. +11 −0 variables.tf
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -30,6 +30,8 @@ This module
- `redis_maintenance_window` - Specifies the weekly time range for when maintenance on the cache cluster is performed. The format is ddd:hh24:mi-ddd:hh24:mi (24H Clock UTC). The minimum maintenance window is a 60 minute period.
- `redis_snapshot_window` - The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. The minimum snapshot window is a 60 minute period.
- `redis_snapshot_retention_limit` - The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro or cache.t2.* cache nodes.
- `snapshot_arn` - S3 ARN of a snapshot .rdb file to seed the new instance with. Make sure the object in S3 allows Elasticache to read via object ACL's, per AWS documentation


Usage
-----
2 changes: 2 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
@@ -17,6 +17,8 @@ resource "aws_elasticache_replication_group" "redis" {
maintenance_window = "${var.redis_maintenance_window}"
snapshot_window = "${var.redis_snapshot_window}"
snapshot_retention_limit = "${var.redis_snapshot_retention_limit}"
tags = "${merge(map("Name","tf-elasticache-${var.name}-${data.aws_vpc.vpc.tags["Name"]}"), var.tags)}"
snapshot_arns = "${var.snapshot_arn}"
}

resource "aws_elasticache_parameter_group" "redis_parameter_group" {
11 changes: 11 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -91,3 +91,14 @@ variable "redis_snapshot_retention_limit" {
description = "The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. For example, if you set SnapshotRetentionLimit to 5, then a snapshot that was taken today will be retained for 5 days before being deleted. If the value of SnapshotRetentionLimit is set to zero (0), backups are turned off. Please note that setting a snapshot_retention_limit is not supported on cache.t1.micro or cache.t2.* cache nodes"
default = 0
}

variable "tags" {
description = "tags to add to these resources tags (e.g. `map('Team','XYZ')`"
default = {}
}

variable "snapshot_arn" {
type = "list"
description = "List with a single S3 ARN of a snapshot .rdb file to seed the new instance with. Make sure the object in S3 allows Elasticache to read via object ACL's, per AWS documentation"
default = []
}