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
Security scanning is graciously provided by Bridgecrew. Bridgecrew is the leading fully hosted, cloud-native solution providing continuous Terraform security and compliance.
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=CIS+KUBERNETES+V1.5)| Center for Internet Security, KUBERNETES Compliance |
78
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=CIS+AWS+V1.2)| Center for Internet Security, AWS Compliance |
79
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=CIS+AZURE+V1.1)| Center for Internet Security, AZURE Compliance |
80
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=PCI-DSS+V3.2)| Payment Card Industry Data Security Standards Compliance |
81
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=NIST-800-53)| National Institute of Standards and Technology Compliance |
82
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=ISO27001)| Information Security Management System, ISO/IEC 27001 Compliance |
83
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=SOC2)| Service Organization Control 2 Compliance |
84
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=CIS+GCP+V1.1)| Center for Internet Security, GCP Compliance |
85
+
|[](https://www.bridgecrew.cloud/link/badge?vcs=github&fullRepo=cloudposse%2Fterraform-aws-lambda-elasticsearch-cleanup&benchmark=HIPAA)| Health Insurance Portability and Accountability Compliance |
86
+
87
+
88
+
70
89
## Usage
71
90
72
91
@@ -140,8 +159,6 @@ by starting with `^`).
140
159
```text
141
160
Available targets:
142
161
143
-
build Build Lambda function zip
144
-
dependencies Install dependencies
145
162
help Help screen
146
163
help/all Display help for all targets
147
164
help/short This help short screen
@@ -161,7 +178,7 @@ is given
161
178
162
179
| Name | Version |
163
180
|------|---------|
164
-
| terraform | >= 0.12.26|
181
+
| terraform | >= 0.13.0|
165
182
| aws | >= 2.0 |
166
183
| null | >= 2.0 |
167
184
@@ -179,18 +196,20 @@ is given
179
196
| artifact\_git\_ref | Git ref of the lambda artifact to use. Use latest version if null. |`string`|`""`| no |
180
197
| artifact\_url | URL template for the remote artifact |`string`|`"https://artifacts.cloudposse.com/$${module_name}/$${git_ref}/$${filename}"`| no |
181
198
| attributes | Additional attributes (e.g. `1`) |`list(string)`|`[]`| no |
182
-
| context | Single object for setting entire context at once.<br>See description of individual variables for details.<br>Leave string and numeric variables as `null` to use default value.<br>Individual variable settings (non-null) override settings in context object,<br>except for attributes, tags, and additional\_tag\_map, which are merged. | <pre>object({<br> enabled = bool<br> namespace = string<br> environment = string<br> stage = string<br> name = string<br> delimiter = string<br> attributes = list(string)<br> tags = map(string)<br> additional_tag_map = map(string)<br> regex_replace_chars = string<br> label_order = list(string)<br> id_length_limit = number<br> })</pre> | <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": null,<br> "enabled": true,<br> "environment": null,<br> "id_length_limit": null,<br> "label_order": [],<br> "name": null,<br> "namespace": null,<br> "regex_replace_chars": null,<br> "stage": null,<br> "tags": {}<br>}</pre> | no |
199
+
| context | Single object for setting entire context at once.<br>See description of individual variables for details.<br>Leave string and numeric variables as `null` to use default value.<br>Individual variable settings (non-null) override settings in context object,<br>except for attributes, tags, and additional\_tag\_map, which are merged. |`any`| <pre>{<br> "additional_tag_map": {},<br> "attributes": [],<br> "delimiter": null,<br> "enabled": true,<br> "environment": null,<br> "id_length_limit": null,<br> "label_key_case": null,<br> "label_order": [],<br> "label_value_case": null,<br> "name": null,<br> "namespace": null,<br> "regex_replace_chars": null,<br> "stage": null,<br> "tags": {}<br>}</pre> | no |
183
200
| delete\_after | Number of days to preserve |`number`|`15`| no |
184
201
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`.<br>Defaults to `-` (hyphen). Set to `""` to use no delimiter at all. |`string`|`null`| no |
185
202
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
186
203
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
| es\_endpoint | The Elasticsearch endpoint for the Lambda function to connect to |`string`| n/a | yes |
189
206
| es\_security\_group\_id | The Elasticsearch cluster security group ID |`string`| n/a | yes |
190
-
| id\_length\_limit | Limit `id` to this many characters.<br>Set to `0` for unlimited length.<br>Set to `null` for default, which is `0`.<br>Does not affect `id_full`. |`number`|`null`| no |
207
+
| id\_length\_limit | Limit `id` to this many characters (minimum 6).<br>Set to `0` for unlimited length.<br>Set to `null` for default, which is `0`.<br>Does not affect `id_full`. |`number`|`null`| no |
191
208
| index\_format | Combined with 'index' variable and is used to evaluate the index age |`string`|`"%Y.%m.%d"`| no |
192
209
| index\_re | Regular Expression that matches the index names to clean up (not including trailing dash and date) |`string`|`".*"`| no |
210
+
| label\_key\_case | The letter case of label keys (`tag` names) (i.e. `name`, `namespace`, `environment`, `stage`, `attributes`) to use in `tags`.<br>Possible values: `lower`, `title`, `upper`.<br>Default value: `title`. |`string`|`null`| no |
193
211
| label\_order | The naming order of the id output and Name tag.<br>Defaults to ["namespace", "environment", "stage", "name", "attributes"].<br>You can omit any of the 5 elements, but at least one must be present. |`list(string)`|`null`| no |
212
+
| label\_value\_case | The letter case of output label values (also used in `tags` and `id`).<br>Possible values: `lower`, `title`, `upper` and `none` (no transformation).<br>Default value: `lower`. |`string`|`null`| no |
194
213
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`null`| no |
195
214
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`null`| no |
196
215
| python\_version | The Python version to use |`string`|`"3.7"`| no |
0 commit comments