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
+41-31Lines changed: 41 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,28 +24,46 @@ 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 (include the env aka. 'my-api-dev') ||
78
-
| zip_file |[object](#zip_file_config)| configuration for a zip file lambda (conflicts with `image_uri`) | null |
79
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 |
80
100
| lambda_vpc_config |[object](#lambda_vpc_config)| Lambda VPC object. Used if lambda requires to run inside a VPC | null |
81
101
| environment_variables | map(string) | A map that defines environment variables for the Lambda function. ||
82
102
| domain_url | string | Custom domain URL for the API, defaults to <app_name>.<hosted_zone_domain> | null ||
83
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. ||
84
104
| https_certificate_arn | string | ARN of the HTTPS certificate of the hosted zone/domain. ||
85
-
| codedeploy_config |[object](#codedeploy_config)| Configuration for putting CodeDeploy on the lambda | null |
105
+
| codedeploy_service_role_arn | string | ARN of the IAM Role for the CodeDeploy to use to initiate new deployments. (usually the PowerBuilder Role) |
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
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`) |
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
86
109
| vpc_id | string | VPC ID to deploy ALB and Lambda (If specified). ||
87
110
| public_subnet_ids | list(string) | List of subnet IDs for the ALB. ||
88
111
| tags | map(string) | A map of AWS Tags to attach to each resource created | {} |
@@ -93,26 +116,13 @@ module "lambda_api" {
93
116
| memory_size | number | Size of the memory of the lambda. CPU will scale along with it | 128 (same as terraform default) |
94
117
| xray_enabled | bool | Whether or not the X-Ray daemon should be created with the Lambda API. | false |
95
118
96
-
#### zip_file_config
97
-
This configuration is used for when you are including the zipped up code for the lambda instead of using the `image_uri`
98
-
*`filename` - (string) File that contains your compiled or zipped source code
99
-
*`handler` - (string) Lambda event handler
100
-
*`runtime` - (string) Lambda runtime
101
-
102
119
#### lambda_vpc_config
103
120
104
121
This variable is used when the lambda needs to be run from within a VPC.
105
122
106
123
***`subnet_ids`** - List of subnet IDs for the Lambda service.
107
124
***`security_group_ids`** - List of extra security group IDs to attach to the lambda.
108
125
109
-
#### codedeploy_config
110
-
If this configuration is included then this module will add the CodeDeploy App and Group required to deploy new versions of the Lambda through CodeDeploy, also allowing for the use of the LifeCycle hooks.
111
-
*`service_role_arn` - (string) ARN of the IAM Role for the CodeDeploy to use to initiate new deployments (usually the PowerBuilder Role)
112
-
*`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
113
-
*`appspec_filename` - (string) Filename (including path) to use when outputing appspec json (defaults to `appspec.json` in the current working directory)
114
-
*`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
115
-
116
126
#### codedeploy_lifecycle_hooks
117
127
118
128
This variable is used when generating the [appspec.json](#appspec) file. This will define what Lambda Functions to invoke
0 commit comments