File tree 2 files changed +20
-0
lines changed
2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,10 @@ module "ecr-scan-trigger-lambda" {
56
56
handler = " lambda_function.lambda_handler"
57
57
runtime = " python3.6"
58
58
59
+ subnet_ids = var. subnet_ids
60
+ security_group_ids = var. security_group_ids
61
+
62
+
59
63
tags = merge (
60
64
var. tags ,
61
65
map (" Name" , var. global_name ),
@@ -75,6 +79,9 @@ module "ecr-scan-notify-lambda" {
75
79
handler = " lambda_function.lambda_handler"
76
80
runtime = " python3.6"
77
81
82
+ subnet_ids = var. subnet_ids
83
+ security_group_ids = var. security_group_ids
84
+
78
85
environment = {
79
86
SLACK_CHANNEL = var.slack_channel
80
87
SLACK_USERNAME = var.slack_username
Original file line number Diff line number Diff line change @@ -55,3 +55,16 @@ variable "risk_levels" {
55
55
type = string
56
56
default = " HIGH, CRITICAL"
57
57
}
58
+
59
+ variable "subnet_ids" {
60
+ description = " VPC subnets for Lambda"
61
+ type = list (string )
62
+ default = []
63
+ }
64
+
65
+ variable "security_group_ids" {
66
+ description = " SG IDs for Lambda, should at least allow all outbound"
67
+ type = list (string )
68
+ default = []
69
+ }
70
+
You can’t perform that action at this time.
0 commit comments