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
* Upgrade module to Terraform 0.12.x
I could not find a way to support 0.11.x and 0.12.x at the same time, so this goes all-in on 0.12.x features and cleans up a lot of code in the process.
terraform-docs does not support 0.12.x yet so I've removed the Makefile and manually wrote the README.
I have tried all tests in the test directory and they all worked.
* Clean up remaining 0.11.x code
* Add Terraform version compatibility table
* Remove Terraform from requirements as it's obvious
* Use dynamic blocks properly
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:
67
+
69
68
| 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
-
| 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 | string |`"false"`| no |
83
-
| layers | List of Lambda Layer Version ARNs to attach to your Lambda Function. | list |`<list>`| no |
84
-
| memory\_size | Amount of memory in MB your Lambda function can use at runtime | string |`"128"`| no |
85
-
| policy | An addional policy to attach to the Lambda function | string |`""`| no |
86
-
| publish | Whether to publish creation/change as new Lambda Function Version | string |`"false"`| no |
87
-
| reserved\_concurrent\_executions | The amount of reserved concurrent executions for this Lambda function | string |`"-1"`| no |
88
-
| runtime | The runtime environment for the Lambda function | string | n/a | yes |
89
-
| source\_path | The source file or directory containing your Lambda source code | string | n/a | yes |
90
-
| tags | A mapping of tags | map |`<map>`| no |
91
-
| timeout | The amount of time your Lambda function had to run in seconds | string |`"10"`| no |
92
-
| 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 |
71
+
| build\_command | The command to run to create the Lambda package zip file | string |`"python build.py '$filename' '$runtime' '$source'"`| no |
72
+
| 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 |
73
+
| cloudwatch\_logs | Set this to false to disable logging your Lambda output to CloudWatch Logs | bool | true | no |
74
+
| 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 |
75
+
| policy | An addional policy to attach to the Lambda function | string || no |
76
+
77
+
The following arguments from the [aws_lambda_function](https://www.terraform.io/docs/providers/aws/r/lambda_function.html) resource are not supported:
78
+
79
+
* filename (use source\_path instead)
80
+
* role (one is automatically created)
81
+
* s3_bucket
82
+
* s3_key
83
+
* s3_object_version
84
+
* source_code_hash (changes are handled automatically)
0 commit comments