Skip to content

Commit aad49cd

Browse files
authored
Merge pull request #1 from evairmarinho/chore/editoconfig_tf_docs_pre-commit
Chore/editoconfig tf docs pre commit
2 parents 890ddd9 + bed94bf commit aad49cd

File tree

5 files changed

+31
-16
lines changed

5 files changed

+31
-16
lines changed

.editorconfig

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# EditorConfig is awesome: http://EditorConfig.org
2+
# Uses editorconfig to maintain consistent coding styles
3+
4+
# top-most EditorConfig file
5+
root = true
6+
7+
# Unix-style newlines with a newline ending every file
8+
[*]
9+
charset = utf-8
10+
end_of_line = lf
11+
indent_size = 2
12+
indent_style = space
13+
insert_final_newline = true
14+
max_line_length = 80
15+
trim_trailing_whitespace = true
16+
17+
[*.{tf,tfvars}]
18+
indent_size = 2
19+
indent_style = space
20+
21+
[*.md]
22+
max_line_length = 0
23+
trim_trailing_whitespace = false

.pre-commit-config.yaml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@ repos:
33
rev: v1.48.0
44
hooks:
55
- id: terraform_fmt
6-
stages: [commit,push]
76
- id: terraform_docs
8-
stages: [commit,push]
97
args:
10-
- '--args=--sort-by-required'
8+
- '--args=--sort-by required'
119
- id: terraform_validate
12-
stages: [commit,push]
1310
- id: terraform_tflint
14-
stages: [commit]
1511
args:
1612
- '--args=--only=terraform_deprecated_interpolation'
1713
- '--args=--only=terraform_deprecated_index'
@@ -26,6 +22,3 @@ repos:
2622
- '--args=--only=terraform_required_providers'
2723
- '--args=--only=terraform_standard_module_structure'
2824
- id: terraform_tfsec
29-
stages: [commit,push]
30-
args:
31-
- "--args=-e AWS002,AWS003,AWS004,AWS005,AWS006,AWS007,AWS008,AWS009,AWS010,AWS012,AWS014,AWS015,AWS016,AWS017,AWS019,AWS020,AWS021,AWS022,AWS023,AWS024,AWS025,AWS031,AWS032,AWS033,AWS034,AWS035,AWS036,AWS045,AWS046,AWS047,AWS048,AWS049,AWS050,AWS051,AWS052,AWS053,AWS057,AWS058,AWS059,AWS060,AWS061,AWS066,AWS067,AWS068,AWS069,AWS070,AWS071,AWS072,AWS077,AWS079,AWS080,AWS081,AWS083,AWS084,AWS085,AWS086,AWS089,AWS091,AWS092,AWS093,AWS094,AWS095,AWS096"

.terraform-docs.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,9 @@ output:
1515
<!-- BEGIN_TF_DOCS -->
1616
{{ .Content }}
1717
<!-- END_TF_DOCS -->
18-
1918
sort:
2019
enabled: true
21-
by:
22-
- required
23-
20+
by: "required"
2421
settings:
2522
anchor: true
2623
color: true
@@ -29,4 +26,4 @@ settings:
2926
indent: 2
3027
required: true
3128
sensitive: true
32-
type: true
29+
type: true

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ module "terraform-aws-iam-users-groups" {
6666
| Name | Version |
6767
|------|---------|
6868
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.6 |
69-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.50 |
69+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.50, < 4.0 |
7070

7171
## Providers
7272

7373
| Name | Version |
7474
|------|---------|
75-
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 2.50 |
75+
| <a name="provider_aws"></a> [aws](#provider\_aws) | 3.62.0 |
7676

7777
## Resources
7878

main.tf

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ resource "aws_iam_user" "users" {
99
name = each.value.name
1010
path = try(each.value.path, "/")
1111
tags = var.tags
12-
1312
}
1413

14+
15+
16+
1517
resource "aws_iam_user_group_membership" "user_to_groups" {
1618
for_each = try(var.users, [])
1719
user = each.value.name

0 commit comments

Comments
 (0)