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
Inputs for this module are the same as the [aws_lambda_function](https://www.terraform.io/docs/providers/aws/r/lambda_function.html) resource with the following additional arguments:
69
+
69
70
| Name | Description | Type | Default | Required |
70
-
|------|-------------|:----:|:-----:|:-----:|
71
-
| attach\_dead\_letter\_config | Set this to true if using the dead_letter_config variable | string |`"false"`| no |
72
-
| attach\_policy | Set this to true if using the policy variable | string |`"false"`| no |
73
-
| attach\_vpc\_config | Set this to true if using the vpc_config variable | string |`"false"`| no |
74
-
| build\_command | The command that creates the Lambda package zip file | string |`"python build.py '$filename' '$runtime' '$source'"`| no |
75
-
| build\_paths | The files or directories used by the build command, to trigger new Lambda package builds whenever build scripts change | list |`<list>`| no |
76
-
| dead\_letter\_config | Dead letter configuration for the Lambda function | map |`<map>`| no |
77
-
| description | Description of what your Lambda function does | string |`"Managed by Terraform"`| no |
78
-
| enable\_cloudwatch\_logs | Set this to false to disable logging your Lambda output to CloudWatch Logs | string |`"true"`| no |
79
-
| environment | Environment configuration for the Lambda function | map |`<map>`| no |
80
-
| function\_name | A unique name for your Lambda function (and related IAM resources) | string | n/a | yes |
81
-
| handler | The function entrypoint in your code | string | n/a | yes |
82
-
| memory\_size | Amount of memory in MB your Lambda function can use at runtime | string |`"128"`| no |
83
-
| policy | An addional policy to attach to the Lambda function | string |`""`| no |
84
-
| reserved\_concurrent\_executions | The amount of reserved concurrent executions for this Lambda function | string |`"0"`| no |
85
-
| runtime | The runtime environment for the Lambda function | string | n/a | yes |
86
-
| source\_path | The source file or directory containing your Lambda source code | string | n/a | yes |
87
-
| tags | A mapping of tags | map |`<map>`| no |
88
-
| timeout | The amount of time your Lambda function had to run in seconds | string |`"10"`| no |
89
-
| vpc\_config | VPC configuration for the Lambda function | map |`<map>`| no |
|**source\_path**| The absolute path to a local file or directory containing your Lambda source code |`string`|| yes |
73
+
| build\_command | The command to run to create the Lambda package zip file |`string`|`"python build.py '$filename' '$runtime' '$source'"`| no |
74
+
| build\_paths | The files or directories used by the build command, to trigger new Lambda package builds whenever build scripts change |`list(string)`|`["build.py"]`| no |
75
+
| cloudwatch\_logs | Set this to false to disable logging your Lambda output to CloudWatch Logs |`bool`|`true`| no |
76
+
| lambda\_at\_edge | Set this to true if using Lambda@Edge, to enable publishing, limit the timeout, and allow edgelambda.amazonaws.com to invoke the function |`bool`|`false`| no |
77
+
| policy | An additional policy to attach to the Lambda function role |`object({json=string})`|| no |
78
+
79
+
The following arguments from the [aws_lambda_function](https://www.terraform.io/docs/providers/aws/r/lambda_function.html) resource are not supported:
80
+
81
+
* filename (use source\_path instead)
82
+
* role (one is automatically created)
83
+
* s3_bucket
84
+
* s3_key
85
+
* s3_object_version
86
+
* source_code_hash (changes are handled automatically)
90
87
91
88
## Outputs
92
89
93
90
| Name | Description |
94
91
|------|-------------|
95
92
| function\_arn | The ARN of the Lambda function |
93
+
| function\_invoke\_arn | The Invoke ARN of the Lambda function |
96
94
| function\_name | The name of the Lambda function |
95
+
| function\_qualified\_arn | The qualified ARN of the Lambda function |
97
96
| role\_arn | The ARN of the IAM role created for the Lambda function |
98
97
| role\_name | The name of the IAM role created for the Lambda function |
0 commit comments