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. |
80
84
| handler | string | Lambda event handler |
81
85
| runtime | string | Lambda runtime |
86
+
| lambda_vpc_config | [object](#lambda_vpc_config) | Lambda VPC object. Used if lambda requires to run inside a VPC | null
82
87
| environment_variables | map(string) | A map that defines environment variables for the Lambda function. |
83
88
| 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. |
84
89
| https_certificate_arn | string | ARN of the HTTPS certificate of the hosted zone/domain. |
85
90
| 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
86
91
| 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
87
-
| vpc_id | string | VPC ID to deploy ECS fargate service. |
92
+
| vpc_id | string | VPC ID to deploy ALB and Lambda (If specified). |
88
93
| public_subnet_ids | list(string) | List of subnet IDs for the ALB. |
89
-
| private_subnet_ids | list(string) | List of subnet IDs for the Lambda service. |
90
94
| tags | map(string) | A map of AWS Tags to attach to each resource created | {}
91
95
| role_permissions_boundary_arn | string | IAM Role Permissions Boundary ARN |
92
96
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 7. | 7
93
97
| lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | []
94
-
| security_groups | list(string) | List of extra security group IDs to attach to the lambda. | []
95
98
| 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
96
99
100
+
#### lambda_vpc_config
101
+
102
+
This variable is used when the lambda needs to be run from within a VPC.
103
+
104
+
***`subnet_ids`** - List of subnet IDs for the Lambda service.
105
+
***`security_group_ids`** - List of extra security group IDs to attach to the lambda.
106
+
97
107
#### codedeploy_lifecycle_hooks
98
108
99
109
This variable is used when generating the [appspec.json](#appspec) file. This will define what Lambda Functions to invoke
0 commit comments