|
15 | 15 | # terraform-module-template [](https://github.com/enter-at/terraform-module-template/actions) [](https://github.com/enter-at/terraform-module-template/releases/latest) [](https://github.com/semantic-release/semantic-release) |
16 | 16 |
|
17 | 17 |
|
18 | | -Terraform module designed to facilitate ... |
| 18 | +Terraform module designed to facilitate the creation of AWS Lambda layers. |
19 | 19 |
|
20 | 20 |
|
21 | 21 | --- |
@@ -51,14 +51,30 @@ module "module" { |
51 | 51 |
|
52 | 52 | | Name | Description | Type | Default | Required | |
53 | 53 | |------|-------------|:----:|:-----:|:-----:| |
54 | | -| enabled | (Optional) Set whether to enable the module. Defaults to true. | bool | `true` | no | |
| 54 | +| compatible_runtimes | (Optional) A list of Runtimes this layer is compatible with. Up to 5 runtimes can be specified. | list(string) | `null` | no | |
| 55 | +| description | (Optional) Description of what the Lambda layer does. | string | `null` | no | |
| 56 | +| layer_name | (Required) A unique name for the Lambda Layer. | string | - | yes | |
| 57 | +| package_file | (Optional) The location of the package manager config file. Can be one of (package.json, requirements.txt, Pipfile) | string | `null` | no | |
| 58 | +| rsync_pattern | (Optional) A list of rsync pattern to include or exclude files and directories. | list(string) | `<list>` | no | |
| 59 | +| source_dir | (Optional) The location of the Lamvda layer source code. Requires source_type to be defined. | string | `null` | no | |
| 60 | +| source_type | (Optional) The location of the Lambda layer source type. Can be one of (nodejs, python) | string | `null` | no | |
| 61 | + |
| 62 | +## Outputs |
| 63 | + |
| 64 | +| Name | Description | |
| 65 | +|------|-------------| |
| 66 | +| arn | The Amazon Resource Name (ARN) of the Lambda layer with version. | |
| 67 | +| created_date | The date the layer was created. | |
| 68 | +| layer_arn | The Amazon Resource Name (ARN) of the Lambda layer without version. | |
| 69 | +| source_code_size | The size in bytes of the layer .zip file. | |
| 70 | +| version | The Lamba layer version. | |
55 | 71 |
|
56 | 72 |
|
57 | 73 |
|
58 | 74 |
|
59 | 75 | ## Share the Love |
60 | 76 |
|
61 | | -Like this project? |
| 77 | +Like this project? |
62 | 78 | Please give it a ★ on [our GitHub](https://github.com/enter-at/terraform-module-template)! |
63 | 79 |
|
64 | 80 |
|
@@ -128,11 +144,12 @@ See [LICENSE](LICENSE) for full details. |
128 | 144 |
|
129 | 145 | ### Contributors |
130 | 146 |
|
131 | | -| [![Steffen Leistner][sleistner_avatar]][sleistner_homepage]<br/>[Steffen Leistner][sleistner_homepage] | |
132 | | -|---| |
| 147 | + |
| 148 | +[![Steffen Leistner][sleistner_avatar]][sleistner_homepage] |
| 149 | + |
133 | 150 |
|
134 | 151 | [sleistner_homepage]: https://github.com/sleistner |
135 | | - [sleistner_avatar]: https://res.cloudinary.com/enter-at/image/fetch/w_100,h_100,c_thumb/https://github.com/sleistner.png |
| 152 | + [sleistner_avatar]: https://res.cloudinary.com/enter-at/image/fetch/f_png,r_max,w_100,h_100,c_thumb/https://github.com/sleistner.png |
136 | 153 |
|
137 | 154 |
|
138 | 155 |
|
|
0 commit comments