Commit 4da88ed 1 parent ee7093c commit 4da88ed Copy full SHA for 4da88ed
File tree 4 files changed +20
-0
lines changed
4 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ module "metaflow-datastore" {
8
8
resource_suffix = local. resource_suffix
9
9
10
10
metadata_service_security_group_id = module. metaflow-metadata-service . metadata_service_security_group_id
11
+ rds_sg_ingress_cidr = var. rds_sg_ingress_cidr
11
12
metaflow_vpc_id = var. vpc_id
12
13
subnet1_id = var. subnet1_id
13
14
subnet2_id = var. subnet2_id
Original file line number Diff line number Diff line change @@ -31,6 +31,13 @@ resource "aws_security_group" "rds_security_group" {
31
31
security_groups = [var . metadata_service_security_group_id ]
32
32
}
33
33
34
+ ingress {
35
+ from_port = 5432
36
+ to_port = 5432
37
+ protocol = " tcp"
38
+ cidr_blocks = var. rds_sg_ingress_cidr
39
+ }
40
+
34
41
# egress to anywhere
35
42
egress {
36
43
from_port = 0
Original file line number Diff line number Diff line change @@ -71,3 +71,9 @@ variable "enable_key_rotation" {
71
71
description = " Enable key rotation for KMS keys"
72
72
default = false
73
73
}
74
+
75
+ variable "rds_sg_ingress_cidr" {
76
+ type = list (string )
77
+ description = " Add additional ingress CIDR access rules to RDS SG"
78
+ default = []
79
+ }
Original file line number Diff line number Diff line change @@ -199,3 +199,9 @@ variable "enable_key_rotation" {
199
199
description = " Enable key rotation for KMS keys"
200
200
default = false
201
201
}
202
+
203
+ variable "rds_sg_ingress_cidr" {
204
+ type = list (string )
205
+ description = " Add additional ingress CIDR access rules to RDS SG"
206
+ default = []
207
+ }
You can’t perform that action at this time.
0 commit comments