Skip to content

Commit 6affcb3

Browse files
authored
chore: update documentation and pin terraform_docs version to avoid future changes (#191)
1 parent 731ff3d commit 6affcb3

File tree

7 files changed

+224
-219
lines changed

7 files changed

+224
-219
lines changed

.github/workflows/pre-commit.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ jobs:
9494
- name: Install pre-commit dependencies
9595
run: |
9696
pip install pre-commit
97-
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
97+
curl -L "$(curl -s https://api.github.com/repos/terraform-docs/terraform-docs/releases/latest | grep -o -E "https://.+?-v0.12.0-linux-amd64" | head -n1)" > terraform-docs && chmod +x terraform-docs && sudo mv terraform-docs /usr/bin/
9898
curl -L "$(curl -s https://api.github.com/repos/terraform-linters/tflint/releases/latest | grep -o -E "https://.+?_linux_amd64.zip")" > tflint.zip && unzip tflint.zip && rm tflint.zip && sudo mv tflint /usr/bin/
9999
- name: Execute pre-commit
100100
# Run all pre-commit checks on max version supported

README.md

+142-137
Large diffs are not rendered by default.

examples/github-complete/README.md

+27-27
Original file line numberDiff line numberDiff line change
@@ -29,54 +29,54 @@ Go to https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/settin
2929

3030
| Name | Version |
3131
|------|---------|
32-
| terraform | >= 0.12.26 |
33-
| aws | >= 2.68 |
34-
| github | >= 2.4.1 |
32+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.26 |
33+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.68 |
34+
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 2.4.1 |
3535

3636
## Providers
3737

3838
| Name | Version |
3939
|------|---------|
40-
| aws | >= 2.68 |
40+
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 2.68 |
4141

4242
## Modules
4343

4444
| Name | Source | Version |
4545
|------|--------|---------|
46-
| atlantis | ../../ | |
47-
| atlantis_access_log_bucket | terraform-aws-modules/s3-bucket/aws | >= 1.9 |
48-
| github_repository_webhook | ../../modules/github-repository-webhook | |
46+
| <a name="module_atlantis"></a> [atlantis](#module\_atlantis) | ../../ | |
47+
| <a name="module_atlantis_access_log_bucket"></a> [atlantis\_access\_log\_bucket](#module\_atlantis\_access\_log\_bucket) | terraform-aws-modules/s3-bucket/aws | >= 1.9 |
48+
| <a name="module_github_repository_webhook"></a> [github\_repository\_webhook](#module\_github\_repository\_webhook) | ../../modules/github-repository-webhook | |
4949

5050
## Resources
5151

52-
| Name |
53-
|------|
54-
| [aws_caller_identity](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) |
55-
| [aws_elb_service_account](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/elb_service_account) |
56-
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) |
57-
| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) |
52+
| Name | Type |
53+
|------|------|
54+
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
55+
| [aws_elb_service_account.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/elb_service_account) | data source |
56+
| [aws_iam_policy_document.atlantis_access_log_bucket_policy](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/iam_policy_document) | data source |
57+
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
5858

5959
## Inputs
6060

6161
| Name | Description | Type | Default | Required |
6262
|------|-------------|------|---------|:--------:|
63-
| alb\_ingress\_cidr\_blocks | List of IPv4 CIDR ranges to use on all ingress rules of the ALB - use your personal IP in the form of `x.x.x.x/32` for restricted testing | `list(string)` | n/a | yes |
64-
| allowed\_repo\_names | Repositories that Atlantis will listen for events from and a webhook will be installed | `list(string)` | n/a | yes |
65-
| domain | Route53 domain name to use for ACM certificate. Route53 zone for this domain should be created in advance | `string` | n/a | yes |
66-
| github\_organization | Github organization | `string` | n/a | yes |
67-
| github\_token | Github token | `string` | n/a | yes |
68-
| github\_user | Github user for Atlantis to utilize when performing Github activities | `string` | n/a | yes |
69-
| region | AWS region where resources will be created | `string` | `"us-east-1"` | no |
70-
| trusted\_principals | A list of principals, in addition to ecs-tasks.amazonaws.com, that can assume the task role | `list(string)` | n/a | yes |
63+
| <a name="input_alb_ingress_cidr_blocks"></a> [alb\_ingress\_cidr\_blocks](#input\_alb\_ingress\_cidr\_blocks) | List of IPv4 CIDR ranges to use on all ingress rules of the ALB - use your personal IP in the form of `x.x.x.x/32` for restricted testing | `list(string)` | n/a | yes |
64+
| <a name="input_allowed_repo_names"></a> [allowed\_repo\_names](#input\_allowed\_repo\_names) | Repositories that Atlantis will listen for events from and a webhook will be installed | `list(string)` | n/a | yes |
65+
| <a name="input_domain"></a> [domain](#input\_domain) | Route53 domain name to use for ACM certificate. Route53 zone for this domain should be created in advance | `string` | n/a | yes |
66+
| <a name="input_github_organization"></a> [github\_organization](#input\_github\_organization) | Github organization | `string` | n/a | yes |
67+
| <a name="input_github_token"></a> [github\_token](#input\_github\_token) | Github token | `string` | n/a | yes |
68+
| <a name="input_github_user"></a> [github\_user](#input\_github\_user) | Github user for Atlantis to utilize when performing Github activities | `string` | n/a | yes |
69+
| <a name="input_region"></a> [region](#input\_region) | AWS region where resources will be created | `string` | `"us-east-1"` | no |
70+
| <a name="input_trusted_principals"></a> [trusted\_principals](#input\_trusted\_principals) | A list of principals, in addition to ecs-tasks.amazonaws.com, that can assume the task role | `list(string)` | n/a | yes |
7171

7272
## Outputs
7373

7474
| Name | Description |
7575
|------|-------------|
76-
| atlantis\_allowed\_repo\_names | Git repositories where webhook should be created |
77-
| atlantis\_url | URL of Atlantis |
78-
| ecs\_task\_definition | Task definition for ECS service (used for external triggers) |
79-
| github\_webhook\_secret | Github webhook secret |
80-
| github\_webhook\_urls | Github webhook URL |
81-
| task\_role\_arn | The Atlantis ECS task role arn |
76+
| <a name="output_atlantis_allowed_repo_names"></a> [atlantis\_allowed\_repo\_names](#output\_atlantis\_allowed\_repo\_names) | Git repositories where webhook should be created |
77+
| <a name="output_atlantis_url"></a> [atlantis\_url](#output\_atlantis\_url) | URL of Atlantis |
78+
| <a name="output_ecs_task_definition"></a> [ecs\_task\_definition](#output\_ecs\_task\_definition) | Task definition for ECS service (used for external triggers) |
79+
| <a name="output_github_webhook_secret"></a> [github\_webhook\_secret](#output\_github\_webhook\_secret) | Github webhook secret |
80+
| <a name="output_github_webhook_urls"></a> [github\_webhook\_urls](#output\_github\_webhook\_urls) | Github webhook URL |
81+
| <a name="output_task_role_arn"></a> [task\_role\_arn](#output\_task\_role\_arn) | The Atlantis ECS task role arn |
8282
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/github-repository-webhook/README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -21,39 +21,39 @@ Note that this example may create resources which cost money. Run `terraform des
2121

2222
| Name | Version |
2323
|------|---------|
24-
| terraform | >= 0.12.26 |
25-
| aws | >= 2.68 |
26-
| github | >= 2.4.1 |
24+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.26 |
25+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.68 |
26+
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 2.4.1 |
2727

2828
## Providers
2929

3030
| Name | Version |
3131
|------|---------|
32-
| terraform | n/a |
32+
| <a name="provider_terraform"></a> [terraform](#provider\_terraform) | n/a |
3333

3434
## Modules
3535

3636
| Name | Source | Version |
3737
|------|--------|---------|
38-
| github_repository_webhook | ../../modules/github-repository-webhook | |
38+
| <a name="module_github_repository_webhook"></a> [github\_repository\_webhook](#module\_github\_repository\_webhook) | ../../modules/github-repository-webhook | |
3939

4040
## Resources
4141

42-
| Name |
43-
|------|
44-
| [terraform_remote_state](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) |
42+
| Name | Type |
43+
|------|------|
44+
| [terraform_remote_state.atlantis](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) | data source |
4545

4646
## Inputs
4747

4848
| Name | Description | Type | Default | Required |
4949
|------|-------------|------|---------|:--------:|
50-
| github\_organization | Github organization | `string` | n/a | yes |
51-
| github\_token | Github token | `string` | n/a | yes |
50+
| <a name="input_github_organization"></a> [github\_organization](#input\_github\_organization) | Github organization | `string` | n/a | yes |
51+
| <a name="input_github_token"></a> [github\_token](#input\_github\_token) | Github token | `string` | n/a | yes |
5252

5353
## Outputs
5454

5555
| Name | Description |
5656
|------|-------------|
57-
| github\_webhook\_secret | Github webhook secret |
58-
| github\_webhook\_urls | Github webhook URL |
57+
| <a name="output_github_webhook_secret"></a> [github\_webhook\_secret](#output\_github\_webhook\_secret) | Github webhook secret |
58+
| <a name="output_github_webhook_urls"></a> [github\_webhook\_urls](#output\_github\_webhook\_urls) | Github webhook URL |
5959
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/gitlab-repository-webhook/README.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,39 @@ Note that this example may create resources which cost money. Run `terraform des
1919

2020
| Name | Version |
2121
|------|---------|
22-
| terraform | >= 0.13 |
23-
| aws | >= 2.68 |
24-
| gitlab | >= 3.0 |
22+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
23+
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 2.68 |
24+
| <a name="requirement_gitlab"></a> [gitlab](#requirement\_gitlab) | >= 3.0 |
2525

2626
## Providers
2727

2828
| Name | Version |
2929
|------|---------|
30-
| terraform | n/a |
30+
| <a name="provider_terraform"></a> [terraform](#provider\_terraform) | n/a |
3131

3232
## Modules
3333

3434
| Name | Source | Version |
3535
|------|--------|---------|
36-
| gitlab_repository_webhook | ../../modules/gitlab-repository-webhook | |
36+
| <a name="module_gitlab_repository_webhook"></a> [gitlab\_repository\_webhook](#module\_gitlab\_repository\_webhook) | ../../modules/gitlab-repository-webhook | |
3737

3838
## Resources
3939

40-
| Name |
41-
|------|
42-
| [terraform_remote_state](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) |
40+
| Name | Type |
41+
|------|------|
42+
| [terraform_remote_state.atlantis](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) | data source |
4343

4444
## Inputs
4545

4646
| Name | Description | Type | Default | Required |
4747
|------|-------------|------|---------|:--------:|
48-
| gitlab\_base\_url | Gitlab base\_url | `string` | `""` | no |
49-
| gitlab\_token | Gitlab token | `string` | n/a | yes |
48+
| <a name="input_gitlab_base_url"></a> [gitlab\_base\_url](#input\_gitlab\_base\_url) | Gitlab base\_url | `string` | `""` | no |
49+
| <a name="input_gitlab_token"></a> [gitlab\_token](#input\_gitlab\_token) | Gitlab token | `string` | n/a | yes |
5050

5151
## Outputs
5252

5353
| Name | Description |
5454
|------|-------------|
55-
| gitlab\_webhook\_secret | Gitlab webhook secret |
56-
| gitlab\_webhook\_urls | Gitlab webhook URL |
55+
| <a name="output_gitlab_webhook_secret"></a> [gitlab\_webhook\_secret](#output\_gitlab\_webhook\_secret) | Gitlab webhook secret |
56+
| <a name="output_gitlab_webhook_urls"></a> [gitlab\_webhook\_urls](#output\_gitlab\_webhook\_urls) | Gitlab webhook URL |
5757
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/github-repository-webhook/README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,40 @@
55

66
| Name | Version |
77
|------|---------|
8-
| terraform | >= 0.12.26 |
9-
| github | >= 2.4.1 |
8+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12.26 |
9+
| <a name="requirement_github"></a> [github](#requirement\_github) | >= 2.4.1 |
1010

1111
## Providers
1212

1313
| Name | Version |
1414
|------|---------|
15-
| github | >= 2.4.1 |
15+
| <a name="provider_github"></a> [github](#provider\_github) | >= 2.4.1 |
1616

1717
## Modules
1818

19-
No Modules.
19+
No modules.
2020

2121
## Resources
2222

23-
| Name |
24-
|------|
25-
| [github_repository_webhook](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_webhook) |
23+
| Name | Type |
24+
|------|------|
25+
| [github_repository_webhook.this](https://registry.terraform.io/providers/integrations/github/latest/docs/resources/repository_webhook) | resource |
2626

2727
## Inputs
2828

2929
| Name | Description | Type | Default | Required |
3030
|------|-------------|------|---------|:--------:|
31-
| atlantis\_allowed\_repo\_names | List of names of repositories which belong to the organization specified in `github_organization` | `list(string)` | n/a | yes |
32-
| create\_github\_repository\_webhook | Whether to create Github repository webhook for Atlantis | `bool` | `true` | no |
33-
| github\_organization | Github organization to use when creating webhook | `string` | `""` | no |
34-
| github\_token | Github token to use when creating webhook | `string` | `""` | no |
35-
| webhook\_secret | Webhook secret | `string` | `""` | no |
36-
| webhook\_url | Webhook URL | `string` | `""` | no |
31+
| <a name="input_atlantis_allowed_repo_names"></a> [atlantis\_allowed\_repo\_names](#input\_atlantis\_allowed\_repo\_names) | List of names of repositories which belong to the organization specified in `github_organization` | `list(string)` | n/a | yes |
32+
| <a name="input_create_github_repository_webhook"></a> [create\_github\_repository\_webhook](#input\_create\_github\_repository\_webhook) | Whether to create Github repository webhook for Atlantis | `bool` | `true` | no |
33+
| <a name="input_github_organization"></a> [github\_organization](#input\_github\_organization) | Github organization to use when creating webhook | `string` | `""` | no |
34+
| <a name="input_github_token"></a> [github\_token](#input\_github\_token) | Github token to use when creating webhook | `string` | `""` | no |
35+
| <a name="input_webhook_secret"></a> [webhook\_secret](#input\_webhook\_secret) | Webhook secret | `string` | `""` | no |
36+
| <a name="input_webhook_url"></a> [webhook\_url](#input\_webhook\_url) | Webhook URL | `string` | `""` | no |
3737

3838
## Outputs
3939

4040
| Name | Description |
4141
|------|-------------|
42-
| this\_repository\_webhook\_secret | Webhook secret |
43-
| this\_repository\_webhook\_urls | Webhook URL |
42+
| <a name="output_this_repository_webhook_secret"></a> [this\_repository\_webhook\_secret](#output\_this\_repository\_webhook\_secret) | Webhook secret |
43+
| <a name="output_this_repository_webhook_urls"></a> [this\_repository\_webhook\_urls](#output\_this\_repository\_webhook\_urls) | Webhook URL |
4444
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

modules/gitlab-repository-webhook/README.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -5,40 +5,40 @@
55

66
| Name | Version |
77
|------|---------|
8-
| terraform | >= 0.13 |
9-
| gitlab | >= 3.0 |
8+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.13 |
9+
| <a name="requirement_gitlab"></a> [gitlab](#requirement\_gitlab) | >= 3.0 |
1010

1111
## Providers
1212

1313
| Name | Version |
1414
|------|---------|
15-
| gitlab | >= 3.0 |
15+
| <a name="provider_gitlab"></a> [gitlab](#provider\_gitlab) | >= 3.0 |
1616

1717
## Modules
1818

19-
No Modules.
19+
No modules.
2020

2121
## Resources
2222

23-
| Name |
24-
|------|
25-
| [gitlab_project_hook](https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/resources/project_hook) |
23+
| Name | Type |
24+
|------|------|
25+
| [gitlab_project_hook.this](https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/resources/project_hook) | resource |
2626

2727
## Inputs
2828

2929
| Name | Description | Type | Default | Required |
3030
|------|-------------|------|---------|:--------:|
31-
| atlantis\_allowed\_repo\_names | List of names of repositories which belong to the organization specified in `gitlab_organization` | `list(string)` | n/a | yes |
32-
| create\_gitlab\_repository\_webhook | Whether to create Gitlab repository webhook for Atlantis | `bool` | `true` | no |
33-
| gitlab\_base\_url | Gitlab base\_url use | `string` | `""` | no |
34-
| gitlab\_token | Gitlab token to use when creating webhook | `string` | `""` | no |
35-
| webhook\_secret | Webhook secret | `string` | `""` | no |
36-
| webhook\_url | Webhook URL | `string` | `""` | no |
31+
| <a name="input_atlantis_allowed_repo_names"></a> [atlantis\_allowed\_repo\_names](#input\_atlantis\_allowed\_repo\_names) | List of names of repositories which belong to the organization specified in `gitlab_organization` | `list(string)` | n/a | yes |
32+
| <a name="input_create_gitlab_repository_webhook"></a> [create\_gitlab\_repository\_webhook](#input\_create\_gitlab\_repository\_webhook) | Whether to create Gitlab repository webhook for Atlantis | `bool` | `true` | no |
33+
| <a name="input_gitlab_base_url"></a> [gitlab\_base\_url](#input\_gitlab\_base\_url) | Gitlab base\_url use | `string` | `""` | no |
34+
| <a name="input_gitlab_token"></a> [gitlab\_token](#input\_gitlab\_token) | Gitlab token to use when creating webhook | `string` | `""` | no |
35+
| <a name="input_webhook_secret"></a> [webhook\_secret](#input\_webhook\_secret) | Webhook secret | `string` | `""` | no |
36+
| <a name="input_webhook_url"></a> [webhook\_url](#input\_webhook\_url) | Webhook URL | `string` | `""` | no |
3737

3838
## Outputs
3939

4040
| Name | Description |
4141
|------|-------------|
42-
| this\_repository\_webhook\_secret | Webhook secret |
43-
| this\_repository\_webhook\_urls | Webhook URL |
42+
| <a name="output_this_repository_webhook_secret"></a> [this\_repository\_webhook\_secret](#output\_this\_repository\_webhook\_secret) | Webhook secret |
43+
| <a name="output_this_repository_webhook_urls"></a> [this\_repository\_webhook\_urls](#output\_this\_repository\_webhook\_urls) | Webhook URL |
4444
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 commit comments

Comments
 (0)