-
-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Optional
elasticache_subnet_group
(#34)
* [issue-30] Optional elasticache_subnet_group ID Add optional variable for the Elasticache subnet group ID so we can create the replication group in an already existing subnet group. * Update main.tf Co-Authored-By: aknysh <[email protected]> * Update variables.tf Co-Authored-By: aknysh <[email protected]> * Update variables.tf Co-Authored-By: aknysh <[email protected]> * Update main.tf Co-Authored-By: aknysh <[email protected]> * Address comments, update LICENSE, update descriptions, update `README` * Update example * Update README
- Loading branch information
Showing
9 changed files
with
150 additions
and
131 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,108 +1,107 @@ | ||
--- | ||
# | ||
# This is the canonical configuration for the `README.md` | ||
# Run `make readme` to rebuild the `README.md` | ||
# | ||
|
||
# Name of this project | ||
name: terraform-aws-elasticache-redis | ||
|
||
# Tags of this project | ||
tags: | ||
- aws | ||
- terraform | ||
- terraform-modules | ||
- databases | ||
- redis | ||
- elasticache | ||
- cache | ||
|
||
# Categories of this project | ||
categories: | ||
- terraform-modules/databases | ||
|
||
# Logo for this project | ||
#logo: docs/logo.png | ||
|
||
# License of this project | ||
license: "APACHE2" | ||
|
||
# Canonical GitHub repo | ||
github_repo: cloudposse/terraform-aws-elasticache-redis | ||
|
||
# Badges to display | ||
badges: | ||
- name: "Build Status" | ||
image: "https://travis-ci.org/cloudposse/terraform-aws-elasticache-redis.svg?branch=master" | ||
url: "https://travis-ci.org/cloudposse/terraform-aws-elasticache-redis" | ||
- name: "Latest Release" | ||
image: "https://img.shields.io/github/release/cloudposse/terraform-aws-elasticache-redis.svg" | ||
url: "https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/releases/latest" | ||
- name: "Slack Community" | ||
image: "https://slack.cloudposse.com/badge.svg" | ||
url: "https://slack.cloudposse.com" | ||
|
||
# Short description of this project | ||
description: |- | ||
Terraform module to provision an [`ElastiCache`](https://aws.amazon.com/elasticache/) Redis Cluster | ||
# How to use this project | ||
usage: |- | ||
Include this repository as a module in your existing terraform code: | ||
```hcl | ||
// Generate a random string for auth token, no special chars | ||
resource "random_string" "auth_token" { | ||
length = 64 | ||
special = false | ||
} | ||
module "example_redis" { | ||
source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=master" | ||
namespace = "general" | ||
name = "redis" | ||
stage = "prod" | ||
zone_id = "${var.route53_zone_id}" | ||
security_groups = ["${var.security_group_id}"] | ||
auth_token = "${random_string.auth_token.result}" | ||
vpc_id = "${var.vpc_id}" | ||
subnets = "${var.private_subnets}" | ||
maintenance_window = "wed:03:00-wed:04:00" | ||
cluster_size = "2" | ||
instance_type = "cache.t2.micro" | ||
engine_version = "4.0.10" | ||
alarm_cpu_threshold_percent = "${var.cache_alarm_cpu_threshold_percent}" | ||
alarm_memory_threshold_bytes = "${var.cache_alarm_memory_threshold_bytes}" | ||
apply_immediately = "true" | ||
availability_zones = "${var.availability_zones}" | ||
automatic_failover = "false" | ||
} | ||
output "auth_token" { | ||
value = "${random_string.auth_token.result}" | ||
} | ||
``` | ||
examples: |- | ||
Review the [complete example](examples/simple) to see how to use this module. | ||
include: | ||
- "docs/targets.md" | ||
- "docs/terraform.md" | ||
|
||
# Contributors to this project | ||
contributors: | ||
- name: "Erik Osterman" | ||
github: "osterman" | ||
- name: "Igor Rodionov" | ||
github: "goruha" | ||
- name: "Andriy Knysh" | ||
github: "aknysh" | ||
- name: "Daren Desjardins" | ||
github: "darend" | ||
- name: "Max Moon" | ||
github: "MoonMoon1919" | ||
- name: "Christopher Riley" | ||
github: "christopherriley" | ||
--- | ||
# | ||
# This is the canonical configuration for the `README.md` | ||
# Run `make readme` to rebuild the `README.md` | ||
# | ||
|
||
# Name of this project | ||
name: terraform-aws-elasticache-redis | ||
|
||
# Tags of this project | ||
tags: | ||
- aws | ||
- terraform | ||
- terraform-modules | ||
- databases | ||
- redis | ||
- elasticache | ||
- cache | ||
|
||
# Categories of this project | ||
categories: | ||
- terraform-modules/databases | ||
|
||
# Logo for this project | ||
#logo: docs/logo.png | ||
|
||
# License of this project | ||
license: "APACHE2" | ||
|
||
# Canonical GitHub repo | ||
github_repo: cloudposse/terraform-aws-elasticache-redis | ||
|
||
# Badges to display | ||
badges: | ||
- name: "Build Status" | ||
image: "https://travis-ci.org/cloudposse/terraform-aws-elasticache-redis.svg?branch=master" | ||
url: "https://travis-ci.org/cloudposse/terraform-aws-elasticache-redis" | ||
- name: "Latest Release" | ||
image: "https://img.shields.io/github/release/cloudposse/terraform-aws-elasticache-redis.svg" | ||
url: "https://github.com/cloudposse/terraform-aws-elastic-beanstalk-environment/releases/latest" | ||
- name: "Slack Community" | ||
image: "https://slack.cloudposse.com/badge.svg" | ||
url: "https://slack.cloudposse.com" | ||
|
||
# Short description of this project | ||
description: |- | ||
Terraform module to provision an [`ElastiCache`](https://aws.amazon.com/elasticache/) Redis Cluster | ||
# How to use this project | ||
usage: |- | ||
```hcl | ||
// Generate a random string for auth token, no special chars | ||
resource "random_string" "auth_token" { | ||
length = 64 | ||
special = false | ||
} | ||
module "example_redis" { | ||
source = "git::https://github.com/cloudposse/terraform-aws-elasticache-redis.git?ref=master" | ||
namespace = "general" | ||
name = "redis" | ||
stage = "prod" | ||
zone_id = "${var.route53_zone_id}" | ||
security_groups = ["${var.security_group_id}"] | ||
auth_token = "${random_string.auth_token.result}" | ||
vpc_id = "${var.vpc_id}" | ||
subnets = "${var.private_subnets}" | ||
maintenance_window = "wed:03:00-wed:04:00" | ||
cluster_size = "2" | ||
instance_type = "cache.t2.micro" | ||
engine_version = "4.0.10" | ||
alarm_cpu_threshold_percent = "${var.cache_alarm_cpu_threshold_percent}" | ||
alarm_memory_threshold_bytes = "${var.cache_alarm_memory_threshold_bytes}" | ||
apply_immediately = "true" | ||
availability_zones = "${var.availability_zones}" | ||
automatic_failover = "false" | ||
} | ||
output "auth_token" { | ||
value = "${random_string.auth_token.result}" | ||
} | ||
``` | ||
examples: |- | ||
Review the [complete example](examples/simple) to see how to use this module. | ||
include: | ||
- "docs/targets.md" | ||
- "docs/terraform.md" | ||
|
||
# Contributors to this project | ||
contributors: | ||
- name: "Erik Osterman" | ||
github: "osterman" | ||
- name: "Igor Rodionov" | ||
github: "goruha" | ||
- name: "Andriy Knysh" | ||
github: "aknysh" | ||
- name: "Daren Desjardins" | ||
github: "darend" | ||
- name: "Max Moon" | ||
github: "MoonMoon1919" | ||
- name: "Christopher Riley" | ||
github: "christopherriley" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,11 @@ | ||
namespace = "eg" | ||
|
||
name = "redis" | ||
|
||
stage = "testing" | ||
|
||
zone_id = "Z3SO0TKDDQ0RGG" | ||
|
||
region = "us-west-2" | ||
|
||
availability_zones = ["us-west-2a", "us-west-2b"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.