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
Copy file name to clipboardExpand all lines: README.md
+50-37Lines changed: 50 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,30 +24,43 @@ Note: If you do not specify `use_codedeploy = true`, the above process will not
24
24
Also Note: CodePipeline and CodeDeploy cannot be used together to deploy a Lambda. If you are using CodePipeline, you cannot specify `use_codedeploy = true`. CodeDeploy works fine with other pipelining tools (e.g. GitHub Actions).
| app_name | string | Application name to name your Lambda API and other resources (Must be <= 24 alphanumeric characters) ||
96
+
| image_uri | string | ECR Image URI containing the function's deployment package (conflicts with `zip_file`)| null |
97
+
| zip_filename | string | File that contains your compiled or zipped source code. |
98
+
| zip_handler | string | Lambda event handler |
99
+
| zip_runtime | string | Lambda runtime |
100
+
| lambda_vpc_config |[object](#lambda_vpc_config)| Lambda VPC object. Used if lambda requires to run inside a VPC | null |
101
+
| environment_variables | map(string) | A map that defines environment variables for the Lambda function. ||
102
+
| domain_url | string | Custom domain URL for the API, defaults to <app_name>.<hosted_zone_domain> | null ||
103
+
| 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. ||
104
+
| https_certificate_arn | string | ARN of the HTTPS certificate of the hosted zone/domain. ||
84
105
| codedeploy_service_role_arn | string | ARN of the IAM Role for the CodeDeploy to use to initiate new deployments. (usually the PowerBuilder Role) |
85
-
| lambda_zip_file | string | File that contains your compiled or zipped source code. |
86
-
| handler | string | Lambda event handler |
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
89
-
| environment_variables | map(string) | A map that defines environment variables for the Lambda function. |
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. |
91
-
| https_certificate_arn | string | ARN of the HTTPS certificate of the hosted zone/domain. |
92
106
| 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
93
-
|appspec_filename| string | Filename (including path) to use when outputing appspec json. |`appspec.json` in the current working directory (i.e. where you ran `terraform apply`) |
107
+
|codedeploy_appspec_filename| string | Filename (including path) to use when outputing appspec json. |`appspec.json` in the current working directory (i.e. where you ran `terraform apply`) |
94
108
| 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
95
-
| vpc_id | string | VPC ID to deploy ALB and Lambda (If specified). |
96
-
| public_subnet_ids | list(string) | List of subnet IDs for the ALB. |
97
-
| tags | map(string) | A map of AWS Tags to attach to each resource created | {}
98
-
| role_permissions_boundary_arn | string | IAM Role Permissions Boundary ARN |
99
-
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 7. | 7
100
-
| lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. | []'
101
-
| 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
102
-
| timeout | number | How long the lambda will run (in seconds) before timing out | 3 (same as terraform default)
103
-
| memory_size | number | Size of the memory of the lambda. CPU will scale along with it | 128 (same as terraform default)
104
-
| xray_enabled | bool | Whether or not the X-Ray daemon should be created with the Lambda API. | false
109
+
| vpc_id | string | VPC ID to deploy ALB and Lambda (If specified). ||
110
+
| public_subnet_ids | list(string) | List of subnet IDs for the ALB. ||
111
+
| tags | map(string) | A map of AWS Tags to attach to each resource created | {} |
112
+
| role_permissions_boundary_arn | string | IAM Role Permissions Boundary ARN ||
113
+
| log_retention_in_days | number | CloudWatch log group retention in days. Defaults to 7. | 7 |
114
+
| lambda_policies | list(string) | List of IAM Policy ARNs to attach to the lambda role. |[]' |
115
+
| timeout | number | How long the lambda will run (in seconds) before timing out | 3 (same as terraform default) |
116
+
| memory_size | number | Size of the memory of the lambda. CPU will scale along with it | 128 (same as terraform default) |
117
+
| xray_enabled | bool | Whether or not the X-Ray daemon should be created with the Lambda API. | false |
105
118
106
119
#### lambda_vpc_config
107
120
@@ -128,7 +141,7 @@ You can pass in either the object from the AWS terraform provider for an AWS Hos
128
141
129
142
#### CloudWatch logs
130
143
131
-
This module will create a CloudWatch log group named `/aws/lambda/<app_name>-<env>`.
144
+
This module will create a CloudWatch log group named `/aws/lambda/<app_name>`.
132
145
133
146
For instance with the [above example](#usage) the logs could be found in the CloudWatch log group: `aws/lambda/my-lambda-dev`.
0 commit comments