Skip to content

Commit b4f9b78

Browse files
committed
Update pre-commit
1 parent a7b2229 commit b4f9b78

File tree

7 files changed

+53
-13
lines changed

7 files changed

+53
-13
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# my pre-commit repos. Decide where to put for others
77
repos:
88
- repo: https://github.com/devops-workflow/pre-commit-terraform
9-
rev: v1.13.0
9+
rev: v1.13.3
1010
hooks:
1111
- id: terraform_tools
1212
- id: terraform_template
@@ -17,14 +17,12 @@ repos:
1717
- repo: https://github.com/pre-commit/pre-commit-hooks
1818
rev: v1.4.0
1919
hooks:
20-
- id: check-added-large-files
2120
- id: check-case-conflict
2221
- id: check-executables-have-shebangs
2322
- id: check-merge-conflict
2423
- id: check-yaml
2524
- id: detect-aws-credentials
2625
- id: detect-private-key
27-
- id: end-of-file-fixer
2826
- id: mixed-line-ending
2927
args: [--fix=lf]
3028
- id: trailing-whitespace

.tflint.hcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
config {
2-
terraform_version = "0.11.2"
2+
terraform_version = "0.11.10"
33
deep_check = true
44

55
ignore_module = {

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ module "label" {
7979
```
8080

8181
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
82-
8382
## Inputs
8483

8584
| Name | Description | Type | Default | Required |
@@ -106,15 +105,15 @@ module "label" {
106105
| attributes | Attribute string lowercase |
107106
| environment | Environment name lowercase |
108107
| id | Fully formatted name ID |
109-
| id_20 | ID truncated to 20 characters |
110-
| id_32 | ID truncated to 32 characters |
111-
| id_attr_20 | ID max size 20 characters by truncating `id_org` then appending `attributes` |
112-
| id_attr_32 | ID max size 32 characters by truncating `id_org` then appending `attributes` |
113-
| id_env | If env namespace enabled `{env}-{name}` else `{name}` |
114-
| id_org | If org namespace enabled `{org}-{id_env}` else `{id_env}` |
108+
| id\_20 | ID truncated to 20 characters |
109+
| id\_32 | ID truncated to 32 characters |
110+
| id\_attr\_20 | ID max size 20 characters by truncating `id_org` then appending `attributes` |
111+
| id\_attr\_32 | ID max size 32 characters by truncating `id_org` then appending `attributes` |
112+
| id\_env | If env namespace enabled `{env}-{name}` else `{name}` |
113+
| id\_org | If org namespace enabled `{org}-{id_env}` else `{id_env}` |
115114
| name | Name lowercase |
116-
| org_attr_20 | Internal debugging. DO NOT USE |
117-
| org_attr_32 | Internal debugging. DO NOT USE |
115+
| org\_attr\_20 | Internal debugging. DO NOT USE |
116+
| org\_attr\_32 | Internal debugging. DO NOT USE |
118117
| organization | Organization name lowercase |
119118
| tags | Tags map merged with standard tags |
120119

examples/disabled/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#MODULE#: Disabled
2+
======================================
3+
4+
Configuration in this directory run with the module disabled.
5+
6+
The module should create nothing and not error on any of the outputs
7+
8+
Usage
9+
=====
10+
11+
To run this example you need to execute:
12+
13+
```bash
14+
$ terraform init
15+
$ terraform plan
16+
$ terraform apply
17+
```
18+
19+
Note that this example may create resources which cost money. Run `terraform destroy` when you don't need these resources.
20+
21+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
22+
23+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/disabled/main.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module "example" {
2+
source = "../../"
3+
name = "example"
4+
enabled = false
5+
}

examples/other-modules/README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Other Terraform modules using this
2+
3+
List of other Terraform modules using this one or that have examples (test cases)
4+
that use this module.
5+
6+
These can also serve as more examples
7+
8+
| Name | GitHub Repo | Terraform Registry |
9+
|-----|-----|-----|
10+
| #MODULE# | [Repo](https://github.com/#ORG#/terraform-#PROVIDER#-#MODULE#) | [Registry](https://registry.terraform.io/modules/#ORG#/#MODULE#/#PROVIDER#) |
11+
12+
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
13+
14+
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/other-modules/main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

0 commit comments

Comments
 (0)