Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit 5f00d55

Browse files
authored
Merge pull request #249 from trussworks/barry-update-things
Address failing pre-commit and update things
2 parents 25c12ac + ad6a1b2 commit 5f00d55

File tree

5 files changed

+42
-19
lines changed

5 files changed

+42
-19
lines changed

.pre-commit-config.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,40 @@ repos:
1010
args:
1111
- --autofix
1212
- id: trailing-whitespace
13+
- id: check-symlinks
14+
- id: end-of-file-fixer
15+
- id: mixed-line-ending
16+
17+
- repo: https://github.com/executablebooks/mdformat
18+
rev: 0.7.16
19+
hooks:
20+
- id: mdformat
21+
additional_dependencies:
22+
- mdformat-gfm
23+
- mdformat-toc
24+
# mdformat fights with terraform_docs
25+
exclude: README.m(ark)?d(own)?
1326

1427
- repo: https://github.com/igorshubovych/markdownlint-cli
1528
rev: v0.32.2
1629
hooks:
1730
- id: markdownlint
1831

32+
- repo: https://github.com/detailyang/pre-commit-shell
33+
rev: 1.0.5
34+
hooks:
35+
- id: shell-lint
36+
1937
- repo: https://github.com/antonbabenko/pre-commit-terraform
2038
rev: v1.76.0
2139
hooks:
2240
- id: terraform_docs
41+
args:
42+
- --args=--config=.terraform-docs.yml
2343
- id: terraform_fmt
2444

2545
- repo: https://github.com/golangci/golangci-lint
2646
rev: v1.50.1
2747
hooks:
2848
- id: golangci-lint
49+
entry: golangci-lint run --fix --timeout 300s

.terraform-docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
settings:
2+
html: false
3+
anchor: false
4+
formatter: "markdown table"

README.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ Terraform 0.11. Pin module version to ~> 1.0. Submit pull-requests to terraform0
5252

5353
| Name | Version |
5454
|------|---------|
55-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13.0 |
56-
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.0 |
55+
| terraform | >= 0.13.0 |
56+
| aws | ~> 4.0 |
5757

5858
## Providers
5959

6060
| Name | Version |
6161
|------|---------|
62-
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.0 |
62+
| aws | ~> 4.0 |
6363

6464
## Modules
6565

@@ -83,25 +83,25 @@ No modules.
8383

8484
| Name | Description | Type | Default | Required |
8585
|------|-------------|------|---------|:--------:|
86-
| <a name="input_desired_capacity"></a> [desired\_capacity](#input\_desired\_capacity) | Desired instance count. | `string` | `2` | no |
87-
| <a name="input_environment"></a> [environment](#input\_environment) | Environment tag. | `string` | n/a | yes |
88-
| <a name="input_image_id"></a> [image\_id](#input\_image\_id) | Amazon ECS-Optimized AMI. | `string` | n/a | yes |
89-
| <a name="input_instance_type"></a> [instance\_type](#input\_instance\_type) | The instance type to use. | `string` | `"t2.micro"` | no |
90-
| <a name="input_max_size"></a> [max\_size](#input\_max\_size) | Maxmimum instance count. | `string` | `2` | no |
91-
| <a name="input_min_size"></a> [min\_size](#input\_min\_size) | Minimum instance count. | `string` | `2` | no |
92-
| <a name="input_name"></a> [name](#input\_name) | The ECS cluster name this will launching instances for. | `string` | n/a | yes |
93-
| <a name="input_security_group_ids"></a> [security\_group\_ids](#input\_security\_group\_ids) | A list of security group ids to attach to the autoscaling group | `list(string)` | `[]` | no |
94-
| <a name="input_subnet_ids"></a> [subnet\_ids](#input\_subnet\_ids) | A list of subnet IDs to launch resources in. | `list(string)` | n/a | yes |
95-
| <a name="input_use_AmazonEC2ContainerServiceforEC2Role_policy"></a> [use\_AmazonEC2ContainerServiceforEC2Role\_policy](#input\_use\_AmazonEC2ContainerServiceforEC2Role\_policy) | Attaches the AWS managed AmazonEC2ContainerServiceforEC2Role policy to the ECS instance role. | `string` | `true` | no |
96-
| <a name="input_vpc_id"></a> [vpc\_id](#input\_vpc\_id) | The id of the VPC to launch resources in. | `any` | n/a | yes |
86+
| desired\_capacity | Desired instance count. | `string` | `2` | no |
87+
| environment | Environment tag. | `string` | n/a | yes |
88+
| image\_id | Amazon ECS-Optimized AMI. | `string` | n/a | yes |
89+
| instance\_type | The instance type to use. | `string` | `"t2.micro"` | no |
90+
| max\_size | Maxmimum instance count. | `string` | `2` | no |
91+
| min\_size | Minimum instance count. | `string` | `2` | no |
92+
| name | The ECS cluster name this will launching instances for. | `string` | n/a | yes |
93+
| security\_group\_ids | A list of security group ids to attach to the autoscaling group | `list(string)` | `[]` | no |
94+
| subnet\_ids | A list of subnet IDs to launch resources in. | `list(string)` | n/a | yes |
95+
| use\_AmazonEC2ContainerServiceforEC2Role\_policy | Attaches the AWS managed AmazonEC2ContainerServiceforEC2Role policy to the ECS instance role. | `string` | `true` | no |
96+
| vpc\_id | The id of the VPC to launch resources in. | `any` | n/a | yes |
9797

9898
## Outputs
9999

100100
| Name | Description |
101101
|------|-------------|
102-
| <a name="output_ecs_cluster_arn"></a> [ecs\_cluster\_arn](#output\_ecs\_cluster\_arn) | The ARN of the ECS cluster. |
103-
| <a name="output_ecs_cluster_name"></a> [ecs\_cluster\_name](#output\_ecs\_cluster\_name) | The name of the ECS cluster. |
104-
| <a name="output_ecs_instance_role"></a> [ecs\_instance\_role](#output\_ecs\_instance\_role) | The name of the ECS instance role. |
102+
| ecs\_cluster\_arn | The ARN of the ECS cluster. |
103+
| ecs\_cluster\_name | The name of the ECS cluster. |
104+
| ecs\_instance\_role | The name of the ECS instance role. |
105105
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
106106

107107
## Developer Setup

main.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,3 @@ resource "aws_autoscaling_group" "main" {
154154
propagate_at_launch = true
155155
}
156156
}
157-

outputs.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,3 @@ output "ecs_instance_role" {
1212
description = "The name of the ECS instance role."
1313
value = aws_iam_role.ecs_instance_role.name
1414
}
15-

0 commit comments

Comments
 (0)