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
* Use fresh null label and context
* Updated README.md
* Do not use extra label
* Fix wrong label usage
* Apply suggestions from code review
Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com>
* Change expected resources name in terratest
Co-authored-by: actions-bot <58130806+actions-bot@users.noreply.github.com>
Co-authored-by: Andriy Knysh <aknysh@users.noreply.github.com>
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`|`string`|`"-"`| no |
245
+
| 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 |
246
+
| 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 |
247
247
| enable\_point\_in\_time\_recovery | Enable DynamoDB point-in-time recovery |`bool`|`false`| no |
248
248
| enable\_public\_access\_block | Enable Bucket Public Access Block |`bool`|`true`| no |
249
249
| enable\_server\_side\_encryption | Enable DynamoDB server-side encryption |`bool`|`true`| no |
250
-
| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' |`string`|`""`| no |
250
+
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
251
+
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
251
252
| force\_destroy | A boolean that indicates the S3 bucket can be destroyed even if it contains objects. These objects are not recoverable |`bool`|`false`| no |
253
+
| 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 |
252
254
| ignore\_public\_acls | Whether Amazon S3 should ignore public ACLs for this bucket |`bool`|`true`| no |
253
-
| label\_order | The naming order of the id output and Name tag|`list(string)`|`[]`| no |
255
+
| 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 |
254
256
| mfa\_delete | A boolean that indicates that versions of S3 objects can only be deleted with MFA. ( Terraform cannot apply changes of this value; https://github.com/terraform-providers/terraform-provider-aws/issues/629 ) |`bool`|`false`| no |
255
-
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`"terraform"`| no |
256
-
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`""`| no |
257
+
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`null`| no |
258
+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`null`| no |
257
259
| prevent\_unencrypted\_uploads | Prevent uploads of unencrypted objects to S3 |`bool`|`true`| no |
258
260
| profile | AWS profile name as set in the shared credentials file |`string`|`""`| no |
259
261
| read\_capacity | DynamoDB read capacity units |`number`|`5`| no |
260
-
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed |`string`|`"/[^a-zA-Z0-9-]/"`| no |
262
+
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. |`string`|`null`| no |
261
263
| restrict\_public\_buckets | Whether Amazon S3 should restrict public bucket policies for this bucket |`bool`|`true`| no |
262
264
| role\_arn | The role to be assumed |`string`|`""`| no |
263
265
| s3\_bucket\_name | S3 bucket name. If not provided, the name will be generated by the label module in the format namespace-stage-name |`string`|`""`| no |
264
266
| s3\_replica\_bucket\_arn | The ARN of the S3 replica bucket (destination) |`string`|`""`| no |
265
267
| s3\_replication\_enabled | Set this to true and specify `s3_replica_bucket_arn` to enable replication |`bool`|`false`| no |
266
-
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`""`| no |
268
+
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
267
269
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`|`map(string)`|`{}`| no |
268
270
| terraform\_backend\_config\_file\_name | Name of terraform backend config file |`string`|`"terraform.tf"`| no |
269
271
| terraform\_backend\_config\_file\_path | Directory for the terraform backend config file, usually `.`. The default is to create no file. |`string`|`""`| no |
| delimiter | Delimiter to be used between `namespace`, `environment`, `stage`, `name` and `attributes`|`string`|`"-"`| no |
31
+
| 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 |
32
+
| 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 |
33
33
| enable\_point\_in\_time\_recovery | Enable DynamoDB point-in-time recovery |`bool`|`false`| no |
34
34
| enable\_public\_access\_block | Enable Bucket Public Access Block |`bool`|`true`| no |
35
35
| enable\_server\_side\_encryption | Enable DynamoDB server-side encryption |`bool`|`true`| no |
36
-
| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' |`string`|`""`| no |
36
+
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
37
+
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
37
38
| force\_destroy | A boolean that indicates the S3 bucket can be destroyed even if it contains objects. These objects are not recoverable |`bool`|`false`| no |
39
+
| 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 |
38
40
| ignore\_public\_acls | Whether Amazon S3 should ignore public ACLs for this bucket |`bool`|`true`| no |
39
-
| label\_order | The naming order of the id output and Name tag|`list(string)`|`[]`| no |
41
+
| 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 |
40
42
| mfa\_delete | A boolean that indicates that versions of S3 objects can only be deleted with MFA. ( Terraform cannot apply changes of this value; https://github.com/terraform-providers/terraform-provider-aws/issues/629 ) |`bool`|`false`| no |
41
-
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`"terraform"`| no |
42
-
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`""`| no |
43
+
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`null`| no |
44
+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`null`| no |
43
45
| prevent\_unencrypted\_uploads | Prevent uploads of unencrypted objects to S3 |`bool`|`true`| no |
44
46
| profile | AWS profile name as set in the shared credentials file |`string`|`""`| no |
45
47
| read\_capacity | DynamoDB read capacity units |`number`|`5`| no |
46
-
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`. By default only hyphens, letters and digits are allowed, all other chars are removed |`string`|`"/[^a-zA-Z0-9-]/"`| no |
48
+
| regex\_replace\_chars | Regex to replace chars with empty string in `namespace`, `environment`, `stage` and `name`.<br>If not set, `"/[^a-zA-Z0-9-]/"` is used to remove all characters other than hyphens, letters and digits. |`string`|`null`| no |
47
49
| restrict\_public\_buckets | Whether Amazon S3 should restrict public bucket policies for this bucket |`bool`|`true`| no |
48
50
| role\_arn | The role to be assumed |`string`|`""`| no |
49
51
| s3\_bucket\_name | S3 bucket name. If not provided, the name will be generated by the label module in the format namespace-stage-name |`string`|`""`| no |
50
52
| s3\_replica\_bucket\_arn | The ARN of the S3 replica bucket (destination) |`string`|`""`| no |
51
53
| s3\_replication\_enabled | Set this to true and specify `s3_replica_bucket_arn` to enable replication |`bool`|`false`| no |
52
-
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`""`| no |
54
+
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
53
55
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`|`map(string)`|`{}`| no |
54
56
| terraform\_backend\_config\_file\_name | Name of terraform backend config file |`string`|`"terraform.tf"`| no |
55
57
| terraform\_backend\_config\_file\_path | Directory for the terraform backend config file, usually `.`. The default is to create no file. |`string`|`""`| no |
0 commit comments