Skip to content

Commit 94f19dd

Browse files
mazzy89aknysh
authored andcommitted
Enable backups (cloudposse#45)
* Enable backups Signed-off-by: Salvatore Mazzarino <[email protected]> * Fix README Signed-off-by: Salvatore Mazzarino <[email protected]>
1 parent 3f6856a commit 94f19dd

File tree

4 files changed

+24
-6
lines changed

4 files changed

+24
-6
lines changed

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ Available targets:
130130
| port | Redis port | number | `6379` | no |
131131
| replication_group_id | Replication group ID with the following constraints: A name must contain from 1 to 20 alphanumeric characters or hyphens. The first character must be a letter. A name cannot end with a hyphen or contain two consecutive hyphens. | string | `` | no |
132132
| security_groups | Security Group IDs | list(string) | `<list>` | no |
133+
| snapshot_retention_limit | The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. | number | `0` | no |
134+
| snapshot_window | The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. | string | `06:30-07:30` | no |
133135
| stage | Stage (e.g. `prod`, `dev`, `staging`) | string | `` | no |
134136
| subnets | Subnet IDs | list(string) | `<list>` | no |
135137
| tags | Additional tags (_e.g._ map("BusinessUnit","ABC") | map(string) | `<map>` | no |
@@ -270,17 +272,17 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
270272
|---|---|---|---|---|---|
271273

272274
[osterman_homepage]: https://github.com/osterman
273-
[osterman_avatar]: https://github.com/osterman.png?size=150
275+
[osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png
274276
[goruha_homepage]: https://github.com/goruha
275-
[goruha_avatar]: https://github.com/goruha.png?size=150
277+
[goruha_avatar]: https://img.cloudposse.com/150x150/https://github.com/goruha.png
276278
[aknysh_homepage]: https://github.com/aknysh
277-
[aknysh_avatar]: https://github.com/aknysh.png?size=150
279+
[aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png
278280
[darend_homepage]: https://github.com/darend
279-
[darend_avatar]: https://github.com/darend.png?size=150
281+
[darend_avatar]: https://img.cloudposse.com/150x150/https://github.com/darend.png
280282
[MoonMoon1919_homepage]: https://github.com/MoonMoon1919
281-
[MoonMoon1919_avatar]: https://github.com/MoonMoon1919.png?size=150
283+
[MoonMoon1919_avatar]: https://img.cloudposse.com/150x150/https://github.com/MoonMoon1919.png
282284
[christopherriley_homepage]: https://github.com/christopherriley
283-
[christopherriley_avatar]: https://github.com/christopherriley.png?size=150
285+
[christopherriley_avatar]: https://img.cloudposse.com/150x150/https://github.com/christopherriley.png
284286

285287

286288

docs/terraform.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@
2727
| port | Redis port | number | `6379` | no |
2828
| replication_group_id | Replication group ID with the following constraints: A name must contain from 1 to 20 alphanumeric characters or hyphens. The first character must be a letter. A name cannot end with a hyphen or contain two consecutive hyphens. | string | `` | no |
2929
| security_groups | Security Group IDs | list(string) | `<list>` | no |
30+
| snapshot_retention_limit | The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them. | number | `0` | no |
31+
| snapshot_window | The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster. | string | `06:30-07:30` | no |
3032
| stage | Stage (e.g. `prod`, `dev`, `staging`) | string | `` | no |
3133
| subnets | Subnet IDs | list(string) | `<list>` | no |
3234
| tags | Additional tags (_e.g._ map("BusinessUnit","ABC") | map(string) | `<map>` | no |

main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ resource "aws_elasticache_replication_group" "default" {
7777
engine_version = var.engine_version
7878
at_rest_encryption_enabled = var.at_rest_encryption_enabled
7979
transit_encryption_enabled = var.transit_encryption_enabled
80+
snapshot_window = var.snapshot_window
81+
snapshot_retention_limit = var.snapshot_retention_limit
8082

8183
tags = module.label.tags
8284
}

variables.tf

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,15 @@ variable "replication_group_id" {
185185
description = "Replication group ID with the following constraints: \nA name must contain from 1 to 20 alphanumeric characters or hyphens. \n The first character must be a letter. \n A name cannot end with a hyphen or contain two consecutive hyphens."
186186
default = ""
187187
}
188+
189+
variable "snapshot_window" {
190+
type = string
191+
description = "The daily time range (in UTC) during which ElastiCache will begin taking a daily snapshot of your cache cluster."
192+
default = "06:30-07:30"
193+
}
194+
195+
variable "snapshot_retention_limit" {
196+
type = number
197+
description = "The number of days for which ElastiCache will retain automatic cache cluster snapshots before deleting them."
198+
default = 0
199+
}

0 commit comments

Comments
 (0)