-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path04-subnet-groups.tf
41 lines (34 loc) · 852 Bytes
/
04-subnet-groups.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# RDS Subnet Group
resource "aws_db_subnet_group" "rds_subnet_group_1" {
name = var.subnet_group_1_name
subnet_ids = [
aws_subnet.private_subnet_1a.id,
aws_subnet.private_subnet_1b.id,
aws_subnet.private_subnet_1c.id
]
tags = {
Name = "rds-subnet-group-gitlab-1"
}
depends_on = [
aws_subnet.private_subnet_1a,
aws_subnet.private_subnet_1b,
aws_subnet.private_subnet_1c
]
}
# Redis Subnet Group
resource "aws_elasticache_subnet_group" "redis_subnet_group_1" {
name = var.subnet_group_2_name
subnet_ids = [
aws_subnet.private_subnet_1a.id,
aws_subnet.private_subnet_1b.id,
aws_subnet.private_subnet_1c.id
]
tags = {
Name = "redis-subnet-group-gitlab-1"
}
depends_on = [
aws_subnet.private_subnet_1a,
aws_subnet.private_subnet_1b,
aws_subnet.private_subnet_1c
]
}