|
1 | 1 | locals { |
2 | | - name = "skaf" |
3 | | - region = "us-east-2" |
4 | | - environment = "production" |
5 | | - redis_engine_version = "6.x" |
| 2 | + name = "skaf" |
| 3 | + region = "us-east-1" |
| 4 | + family = "redis6.x" |
| 5 | + node_type = "cache.t3.small" |
| 6 | + vpc_id = "vpc-06f1a2f3a7" |
| 7 | + subnet_ids = ["subnet-0bb128ab", "subnet-0b54928666a"] |
| 8 | + kms_key_arn = "arn:aws:kms:us-east-1:2222222222:key/bcfdc1c5-1bbbdb467d90" |
| 9 | + environment = "prod" |
| 10 | + redis_engine_version = "6.0" |
| 11 | + allowed_security_groups = ["sg-0e8dab08e40"] |
6 | 12 | } |
7 | 13 |
|
8 | | -data "aws_availability_zones" "available" {} |
9 | | - |
10 | 14 | module "redis" { |
11 | | - source = "../../" |
12 | | - environment = local.environment |
13 | | - name = local.name |
14 | | - engine_version = local.redis_engine_version |
15 | | - port = 6379 |
16 | | - node_type = "cache.t3.small" |
17 | | - num_cache_nodes = 2 |
18 | | - family = "redis6.x" |
19 | | - availability_zones = [for n in range(0, 2) : data.aws_availability_zones.available.names[n]] |
20 | | - automatic_failover_enabled = true |
21 | | - snapshot_retention_limit = 7 |
22 | | - multi_az_enabled = false |
23 | | - at_rest_encryption_enabled = true |
24 | | - transit_encryption_enabled = false |
25 | | - notification_topic_arn = null |
26 | | - vpc_id = "vpc-06e37f0786b7efaab" |
27 | | - subnets = ["subnet-021320ad57f4ef6bb","subnet-04ec8cb5f9abd4941"] |
28 | | - allowed_cidr_blocks = [] |
29 | | - allowed_security_groups = ["sg-028cc84f7ff452dfd"] |
30 | | - maintenance_window = "sun:09:00-sun:10:00" |
31 | | - snapshot_window = "07:00-08:00" |
32 | | - kms_key_arn = "arn:aws:kms:us-east-2:271251951598:key/7fa600be-9c08-4502-a67a-ed7e8bc332cb" |
| 15 | + source = "git@github.com:sq-ia/terraform-aws-elasticache-redis.git" |
| 16 | + name = local.name |
| 17 | + family = local.family |
| 18 | + node_type = local.node_type |
| 19 | + environment = local.environment |
| 20 | + engine_version = local.redis_engine_version |
| 21 | + num_cache_nodes = 2 |
| 22 | + vpc_id = local.vpc_id |
| 23 | + subnets = local.subnet_ids |
| 24 | + kms_key_arn = local.kms_key_arn |
| 25 | + multi_az_enabled = false |
| 26 | + availability_zones = 2 |
| 27 | + snapshot_window = "07:00-08:00" |
| 28 | + maintenance_window = "sun:09:00-sun:10:00" |
| 29 | + allowed_security_groups = local.allowed_security_groups |
33 | 30 | } |
34 | | - |
0 commit comments