You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rds.postgres-main.tf
+30-22Lines changed: 30 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,26 +1,4 @@
1
1
2
-
locals {
3
-
4
-
subnet_group_tags={
5
-
Name ="db-subnet-group-${var.in_ecosystem_name}-${var.in_tag_timestamp}"
6
-
Desc ="This RDS postgres database subnet group for ${var.in_ecosystem_name}${var.in_tag_description}"
7
-
}
8
-
9
-
database_tags={
10
-
Name = var.in_database_name
11
-
Id ="${var.in_database_name}-${var.in_ecosystem_name}-${var.in_tag_timestamp}"
12
-
}
13
-
14
-
cloned_database_tags={
15
-
Desc ="This PostgreSQL database named ${var.in_database_name} was cloned from snapshot ${data.aws_db_snapshot.from[0].id} and ${var.in_tag_description}"
16
-
}
17
-
18
-
fresh_database_tags={
19
-
Desc ="This brand new PostgreSQL database named ${var.in_database_name}${var.in_tag_description}"
20
-
}
21
-
22
-
}
23
-
24
2
/*
25
3
| --
26
4
| -- The database username is constructed with a prefix of "user_rw_"
| -- These tag definitions are attached onto the databases that are
166
+
| -- cloned or createed and also the database subnet group.
167
+
| --
168
+
*/
169
+
locals {
170
+
171
+
subnet_group_tags={
172
+
Name ="db-subnet-group-${var.in_ecosystem_name}-${var.in_tag_timestamp}"
173
+
Desc ="This RDS postgres database subnet group for ${var.in_ecosystem_name}${var.in_tag_description}"
174
+
}
175
+
176
+
database_tags={
177
+
Name = var.in_database_name
178
+
Id ="${var.in_database_name}-${var.in_ecosystem_name}-${var.in_tag_timestamp}"
179
+
}
180
+
181
+
cloned_database_tags={
182
+
Desc ="This PostgreSQL database named ${var.in_database_name} was cloned from snapshot ${data.aws_db_snapshot.from[0].id} and ${var.in_tag_description}"
183
+
}
184
+
185
+
fresh_database_tags={
186
+
Desc ="This brand new PostgreSQL database named ${var.in_database_name}${var.in_tag_description}"
0 commit comments