We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbc94a commit 492e71fCopy full SHA for 492e71f
main.tf
@@ -216,8 +216,9 @@ resource aws_lambda_function "lambda" {
216
runtime = var.runtime
217
timeout = var.timeout
218
vpc_config {
219
- security_group_ids = [
220
- aws_security_group.vpc_sec.id]
+ security_group_ids = concat([
+ aws_security_group.vpc_sec.id,
221
+ ], var.lambda-security-group-ids)
222
subnet_ids = module.acs.private_subnet_ids
223
}
224
environment {
variables.tf
@@ -87,3 +87,8 @@ variable "root-resource-authorization" {
87
variable "swagger-path" {
88
type = string
89
90
+
91
+variable "lambda-security-group-ids" {
92
+ type = list(string)
93
+ default = []
94
+}
0 commit comments