Skip to content

Commit d108485

Browse files
committed
add .editorconfig, ajuste pre-commit e tf-docs
1 parent cdd285d commit d108485

File tree

4 files changed

+10
-11
lines changed

4 files changed

+10
-11
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,9 @@ 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
1210
stages: [commit,push]
1311
- id: terraform_tflint
@@ -28,4 +26,4 @@ repos:
2826
- id: terraform_tfsec
2927
stages: [commit,push]
3028
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"
29+
- "--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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ module "terraform-aws-iam-users-groups" {
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: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,20 @@ resource "aws_iam_group" "groups" {
33
name = each.value
44
path = "/"
55
}
6+
67
resource "aws_iam_user" "users" {
78
for_each = try(var.users, [])
89
name = each.value.name
910
path = try(each.value.path, "/")
1011
tags = var.tags
1112
}
1213

14+
15+
16+
1317
resource "aws_iam_user_group_membership" "user_to_groups" {
1418
for_each = try(var.users, [])
1519
user = each.value.name
1620
groups = each.value.groups
1721
depends_on = [aws_iam_user.users, aws_iam_group.groups]
18-
}
22+
}

0 commit comments

Comments
 (0)