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
| lambda_zip_file | string | File that contains your compiled or zipped source code. |
82
86
| handler | string | Lambda event handler |
83
87
| runtime | string | Lambda runtime |
88
+
| lambda_vpc_config | [object](#lambda_vpc_config) | Lambda VPC object. Used if lambda requires to run inside a VPC | null
84
89
| environment_variables | map(string) | A map that defines environment variables for the Lambda function. |
85
90
| hosted_zone |[object](#hosted_zone)| Hosted Zone object to redirect to ALB. (Can pass in the aws_hosted_zone object). A and AAAA records created in this hosted zone. |
86
91
| https_certificate_arn | string | ARN of the HTTPS certificate of the hosted zone/domain. |
87
92
| codedeploy_lifecycle_hooks | [object](#codedeploy_lifecycle_hooks) | Define Lambda Functions for CodeDeploy lifecycle event hooks. Or set this variable to null to not have any lifecycle hooks invoked. Defaults to null | null
88
93
| codedeploy_test_listener_port | number | The port for a codedeploy test listener. If provided CodeDeploy will use this port for test traffic on the new replacement set during the blue-green deployment process before shifting production traffic to the replacement set. Defaults to null | null
89
-
| vpc_id | string | VPC ID to deploy ECS fargate service. |
94
+
| vpc_id | string | VPC ID to deploy ALB and Lambda (If specified). |
90
95
| public_subnet_ids | list(string) | List of subnet IDs for the ALB. |
91
-
| private_subnet_ids | list(string) | List of subnet IDs for the Lambda service. |
92
96
| tags | map(string) | A map of AWS Tags to attach to each resource created | {}
93
97
| role_permissions_boundary_arn | string | IAM Role Permissions Boundary ARN |
94
98
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 7. | 7
95
-
| lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | []
96
-
| security_groups | list(string) | List of extra security group IDs to attach to the lambda. | []
99
+
| lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | []'
97
100
| use_codedeploy | bool | 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). | false
98
101
| timeout | number | How long the lambda will run (in seconds) before timing out | 3 (same as terraform default)
99
102
| memory_size | number | Size of the memory of the lambda. CPU will scale along with it | 128 (same as terraform default)
100
103
104
+
#### lambda_vpc_config
105
+
106
+
This variable is used when the lambda needs to be run from within a VPC.
107
+
108
+
***`subnet_ids`** - List of subnet IDs for the Lambda service.
109
+
***`security_group_ids`** - List of extra security group IDs to attach to the lambda.
110
+
101
111
#### codedeploy_lifecycle_hooks
102
112
103
113
This variable is used when generating the [appspec.json](#appspec) file. This will define what Lambda Functions to invoke
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
+
38
47
variable"hosted_zone" {
39
48
type=object({
40
49
name =string,
@@ -71,10 +80,6 @@ variable "public_subnet_ids" {
71
80
type=list(string)
72
81
description="List of subnet IDs for the ALB."
73
82
}
74
-
variable"private_subnet_ids" {
75
-
type=list(string)
76
-
description="List of subnet IDs for the Lambda service."
77
-
}
78
83
79
84
variable"tags" {
80
85
type=map(string)
@@ -99,12 +104,6 @@ variable "lambda_policies" {
99
104
default=[]
100
105
}
101
106
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
-
108
107
variable"use_codedeploy" {
109
108
type=bool
110
109
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