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
* module modernisation
- use context.tf
- use lower bound pinning for providers
- update readme
- update auto-release
- update test/src/Makefile
* use module.this.enabled instead of var.enabled
* update outputs to use module.this.enabled
* use module.this.stage instead of var.stage
| additional\_tag\_map | Additional tags for appending to tags\_as\_list\_of\_maps. Not added to `tags`. |`map(string)`|`{}`| no |
151
154
| artifact\_type | The build output artifact's type. Valid values for this parameter are: CODEPIPELINE, NO\_ARTIFACTS or S3 |`string`|`"CODEPIPELINE"`| no |
152
-
| attributes | Additional attributes (e.g. `policy` or `role`) |`list(string)`|`[]`| no |
155
+
| attributes | Additional attributes (e.g. `1`) |`list(string)`|`[]`| no |
153
156
| aws\_account\_id | (Optional) AWS Account ID. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html|`string`|`""`| no |
154
157
| aws\_region | (Optional) AWS Region, e.g. us-east-1. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html|`string`|`""`| no |
155
158
| badge\_enabled | Generates a publicly-accessible URL for the projects build badge. Available as badge\_url attribute when enabled |`bool`|`false`| no |
@@ -161,21 +164,26 @@ Available targets:
161
164
| cache\_bucket\_suffix\_enabled | The cache bucket generates a random 13 character string to generate a unique bucket name. If set to false it uses terraform-null-label's id value. It only works when cache\_type is 'S3 |`bool`|`true`| no |
162
165
| cache\_expiration\_days | How many days should the build cache be kept. It only works when cache\_type is 'S3' |`number`|`7`| no |
163
166
| cache\_type | The type of storage that will be used for the AWS CodeBuild project cache. Valid values: NO\_CACHE, LOCAL, and S3. Defaults to NO\_CACHE. If cache\_type is S3, it will create an S3 bucket for storing codebuild cache inside |`string`|`"NO_CACHE"`| no |
164
-
| delimiter | Delimiter to be used between `name`, `namespace`, `stage`, etc. |`string`|`"-"`| no |
165
-
| enabled | A boolean to enable/disable resource creation |`bool`|`true`| no |
167
+
| 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 |
168
+
| 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 |
169
+
| enabled | Set to false to prevent the module from creating any resources |`bool`|`null`| no |
170
+
| environment | Environment, e.g. 'uw2', 'us-west-2', OR 'prod', 'staging', 'dev', 'UAT' |`string`|`null`| no |
166
171
| environment\_variables | A list of maps, that contain both the key 'name' and the key 'value' to be used as additional environment variables for the build | <pre>list(object(<br> {<br> name = string<br> value = string<br> }))</pre> | <pre>[<br> {<br> "name": "NO_ADDITIONAL_BUILD_VARS",<br> "value": "TRUE"<br> }<br>]</pre> | no |
167
172
| extra\_permissions | List of action strings which will be added to IAM service account permissions. |`list`|`[]`| no |
168
173
| fetch\_git\_submodules | If set to true, fetches Git submodules for the AWS CodeBuild build project. |`bool`|`false`| no |
169
174
| git\_clone\_depth | Truncate git history to this many commits. |`number`|`null`| no |
| 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 |
171
177
| image\_repo\_name | (Optional) ECR repository name to store the Docker image built by this module. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html|`string`|`"UNSET"`| no |
172
178
| image\_tag | (Optional) Docker image tag in the ECR repository, e.g. 'latest'. Used as CodeBuild ENV variable when building Docker images. For more info: http://docs.aws.amazon.com/codebuild/latest/userguide/sample-docker.html|`string`|`"latest"`| no |
179
+
| 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 |
173
180
| local\_cache\_modes | Specifies settings that AWS CodeBuild uses to store and reuse build dependencies. Valid values: LOCAL\_SOURCE\_CACHE, LOCAL\_DOCKER\_LAYER\_CACHE, and LOCAL\_CUSTOM\_CACHE |`list(string)`|`[]`| no |
174
181
| logs\_config | Configuration for the builds to store log data to CloudWatch or S3. |`any`|`{}`| no |
175
-
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|n/a|yes|
176
-
| namespace | Namespace, which could be your organization name, e.g. 'eg' or 'cp' |`string`|`""`| no |
182
+
| name | Solution name, e.g. 'app' or 'jenkins' |`string`|`null`|no|
183
+
| namespace | Namespace, which could be your organization name or abbreviation, e.g. 'eg' or 'cp' |`string`|`null`| no |
177
184
| private\_repository | Set to true to login into private repository with credentials supplied in source\_credential variable. |`bool`|`false`| no |
178
185
| privileged\_mode | (Optional) If set to true, enables running the Docker daemon inside a Docker container on the CodeBuild instance. Used when building Docker images |`bool`|`false`| no |
186
+
| 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 |
179
187
| report\_build\_status | Set to true to report the status of a build's start and finish to your source provider. This option is only valid when the source\_type is BITBUCKET or GITHUB |`bool`|`false`| no |
180
188
| source\_credential\_auth\_type | The type of authentication used to connect to a GitHub, GitHub Enterprise, or Bitbucket repository. |`string`|`"PERSONAL_ACCESS_TOKEN"`| no |
181
189
| source\_credential\_server\_type | The source provider used for this project. |`string`|`"GITHUB"`| no |
@@ -184,8 +192,8 @@ Available targets:
184
192
| source\_location | The location of the source code from git or s3 |`string`|`""`| no |
185
193
| source\_type | The type of repository that contains the source code to be built. Valid values for this parameter are: CODECOMMIT, CODEPIPELINE, GITHUB, GITHUB\_ENTERPRISE, BITBUCKET or S3 |`string`|`"CODEPIPELINE"`| no |
186
194
| source\_version | A version of the build input to be built for this project. If not specified, the latest version is used. |`string`|`""`| no |
187
-
| stage | Stage, e.g. 'prod', 'staging', 'dev', or 'test'|`string`|`""`| no |
188
-
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`|`map(string)`|`{}`| no |
195
+
| stage | Stage, e.g. 'prod', 'staging', 'dev', OR 'source', 'build', 'test', 'deploy', 'release' |`string`|`null`| no |
196
+
| tags | Additional tags (e.g. `map('BusinessUnit','XYZ')`|`map(string)`|`{}`| no |
189
197
| vpc\_config | Configuration for the builds to run inside a VPC. |`any`|`{}`| no |
190
198
191
199
## Outputs
@@ -348,8 +356,10 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply
0 commit comments