|
| 1 | +<!-- markdownlint-disable --> |
1 | 2 | # terraform-aws-elastic-beanstalk-application |
2 | 3 |
|
3 | 4 | [](https://github.com/cloudposse/terraform-aws-elastic-beanstalk-application/releases/latest) [](https://slack.cloudposse.com) |
| 5 | +<!-- markdownlint-restore --> |
4 | 6 |
|
5 | 7 | [![README Header][readme_header_img]][readme_header_link] |
6 | 8 |
|
@@ -79,42 +81,50 @@ Available targets: |
79 | 81 |
|
80 | 82 | ``` |
81 | 83 | <!-- markdownlint-restore --> |
| 84 | +<!-- markdownlint-disable --> |
82 | 85 | ## Requirements |
83 | 86 |
|
84 | 87 | | Name | Version | |
85 | 88 | |------|---------| |
86 | | -| terraform | >= 0.12.0, < 0.14.0 | |
87 | | -| aws | ~> 2.0 | |
88 | | -| null | ~> 2.0 | |
| 89 | +| terraform | >= 0.12.26 | |
| 90 | +| aws | >= 2.0 | |
| 91 | +| null | >= 2.0 | |
89 | 92 |
|
90 | 93 | ## Providers |
91 | 94 |
|
92 | 95 | | Name | Version | |
93 | 96 | |------|---------| |
94 | | -| aws | ~> 2.0 | |
| 97 | +| aws | >= 2.0 | |
95 | 98 |
|
96 | 99 | ## Inputs |
97 | 100 |
|
98 | 101 | | Name | Description | Type | Default | Required | |
99 | 102 | |------|-------------|------|---------|:--------:| |
| 103 | +| additional\_tag\_map | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. | `map(string)` | `{}` | no | |
100 | 104 | | appversion\_lifecycle\_delete\_source\_from\_s3 | Whether to delete application versions from S3 source | `bool` | `false` | no | |
101 | 105 | | appversion\_lifecycle\_max\_count | The max number of application versions to keep | `number` | `1000` | no | |
102 | 106 | | appversion\_lifecycle\_service\_role\_arn | The service role ARN to use for application version cleanup. If left empty, the `appversion_lifecycle` block will not be created | `string` | `""` | no | |
103 | 107 | | attributes | Additional attributes (e.g. `1`) | `list(string)` | `[]` | no | |
104 | | -| delimiter | Delimiter to be used between `name`, `namespace`, `stage`, etc. | `string` | `"-"` | no | |
| 108 | +| 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 | |
| 109 | +| 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 | |
105 | 110 | | description | Elastic Beanstalk Application description | `string` | `""` | no | |
106 | | -| environment | Environment, e.g. 'prod', 'staging', 'dev', 'pre-prod', 'UAT' | `string` | `""` | no | |
107 | | -| name | Solution name, e.g. 'app' or 'cluster' | `string` | n/a | yes | |
108 | | -| namespace | Namespace, which could be your organization name, e.g. 'eg' or 'cp' | `string` | `""` | no | |
109 | | -| stage | Stage, e.g. 'prod', 'staging', 'dev', or 'test' | `string` | `""` | no | |
110 | | -| tags | Additional tags (e.g. `map('BusinessUnit`,`XYZ`) | `map(string)` | `{}` | no | |
| 111 | +| enabled | Set to false to prevent the module from creating any resources | `bool` | `null` | no | |
| 112 | +| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' | `string` | `null` | no | |
| 113 | +| 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 | |
| 114 | +| 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 | |
| 115 | +| name | Solution name, e.g. 'app' or 'jenkins' | `string` | `null` | no | |
| 116 | +| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' | `string` | `null` | no | |
| 117 | +| 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 | |
| 118 | +| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' | `string` | `null` | no | |
| 119 | +| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')` | `map(string)` | `{}` | no | |
111 | 120 |
|
112 | 121 | ## Outputs |
113 | 122 |
|
114 | 123 | | Name | Description | |
115 | 124 | |------|-------------| |
116 | 125 | | elastic\_beanstalk\_application\_name | Elastic Beanstalk Application name | |
117 | 126 |
|
| 127 | +<!-- markdownlint-restore --> |
118 | 128 |
|
119 | 129 |
|
120 | 130 |
|
@@ -275,8 +285,10 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply |
275 | 285 |
|
276 | 286 | ### Contributors |
277 | 287 |
|
| 288 | +<!-- markdownlint-disable --> |
278 | 289 | | [![Erik Osterman][osterman_avatar]][osterman_homepage]<br/>[Erik Osterman][osterman_homepage] | [![Igor Rodionov][goruha_avatar]][goruha_homepage]<br/>[Igor Rodionov][goruha_homepage] | [![Andriy Knysh][aknysh_avatar]][aknysh_homepage]<br/>[Andriy Knysh][aknysh_homepage] | |
279 | 290 | |---|---|---| |
| 291 | +<!-- markdownlint-restore --> |
280 | 292 |
|
281 | 293 |
|
282 | 294 | [osterman_homepage]: https://github.com/osterman |
|
0 commit comments