Skip to content

Commit bc7f18d

Browse files
author
Tyler Ray
committed
Added Variables
1 parent 287bfb2 commit bc7f18d

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

variables.tf

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@ variable "environment_variables" {
3535
default = null
3636
}
3737

38+
variable "lambda_vpc_config" {
39+
default = null
40+
description = "Provide this to allow your function to access your VPC."
41+
type = object({
42+
security_group_ids = list(string)
43+
subnet_ids = list(string)
44+
})
45+
}
46+
3847
variable "hosted_zone" {
3948
type = object({
4049
name = string,
@@ -71,10 +80,6 @@ variable "public_subnet_ids" {
7180
type = list(string)
7281
description = "List of subnet IDs for the ALB."
7382
}
74-
variable "private_subnet_ids" {
75-
type = list(string)
76-
description = "List of subnet IDs for the Lambda service."
77-
}
7883

7984
variable "tags" {
8085
type = map(string)
@@ -99,12 +104,6 @@ variable "lambda_policies" {
99104
default = []
100105
}
101106

102-
variable "security_groups" {
103-
type = list(string)
104-
description = "List of extra security group IDs to attach to the lambda."
105-
default = []
106-
}
107-
108107
variable "use_codedeploy" {
109108
type = bool
110109
description = "If true, CodeDeploy App and Deployment Group will be created and TF will not update alias to point to new versions of the Lambda (becuase CodeDeploy will do that)."

0 commit comments

Comments
 (0)