Skip to content

chore: update documentation based on latest terraform-docs which includes module and resource sections #180

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Feb 20, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 29 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
.terraform
terraform.tfstate
*.tfstate*
terraform.tfvars
# Local .terraform directories
**/.terraform/*

# Terraform lockfile
.terraform.lock.hcl

# .tfstate files
*.tfstate
*.tfstate.*

# Crash log files
crash.log

# Exclude all .tfvars files, which are likely to contain sentitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Ignore CLI configuration files
.terraformrc
terraform.rc
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: git://github.com/antonbabenko/pre-commit-terraform
rev: v1.44.0
rev: v1.46.0
hooks:
- id: terraform_fmt
- id: terraform_validate
Expand All @@ -21,6 +21,6 @@ repos:
- '--args=--only=terraform_standard_module_structure'
- '--args=--only=terraform_workspace_remote'
- repo: git://github.com/pre-commit/pre-commit-hooks
rev: v3.3.0
rev: v3.4.0
hooks:
- id: check-merge-conflict
34 changes: 33 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,39 @@ allow_github_webhooks = true
| aws | >= 2.68 |
| random | >= 2.0 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| acm | terraform-aws-modules/acm/aws | v2.12.0 |
| alb | terraform-aws-modules/alb/aws | v5.10.0 |
| alb_http_sg | terraform-aws-modules/security-group/aws//modules/http-80 | v3.17.0 |
| alb_https_sg | terraform-aws-modules/security-group/aws//modules/https-443 | v3.17.0 |
| atlantis_sg | terraform-aws-modules/security-group/aws | v3.17.0 |
| container_definition_bitbucket | cloudposse/ecs-container-definition/aws | v0.45.2 |
| container_definition_github_gitlab | cloudposse/ecs-container-definition/aws | v0.45.2 |
| ecs | terraform-aws-modules/ecs/aws | v2.5.0 |
| vpc | terraform-aws-modules/vpc/aws | v2.64.0 |

## Resources

| Name |
|------|
| [aws_cloudwatch_log_group](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/cloudwatch_log_group) |
| [aws_ecs_service](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/ecs_service) |
| [aws_ecs_task_definition](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/ecs_task_definition) |
| [aws_ecs_task_definition](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/ecs_task_definition) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/iam_policy_document) |
| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/iam_role_policy_attachment) |
| [aws_iam_role_policy](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/iam_role_policy) |
| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/iam_role) |
| [aws_lb_listener_rule](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/lb_listener_rule) |
| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/region) |
| [aws_route53_record](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/route53_record) |
| [aws_route53_zone](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/route53_zone) |
| [aws_ssm_parameter](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/resources/ssm_parameter) |
| [random_id](https://registry.terraform.io/providers/hashicorp/random/2.0/docs/resources/id) |

## Inputs

| Name | Description | Type | Default | Required |
Expand Down Expand Up @@ -290,7 +323,6 @@ allow_github_webhooks = true
| task\_role\_unique\_id | The stable and unique string identifying the Atlantis ECS task role. |
| vpc\_id | ID of the VPC that was created or passed in |
| webhook\_secret | Webhook secret |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

## Authors
Expand Down
18 changes: 17 additions & 1 deletion examples/github-complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,23 @@ Go to https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/settin
|------|---------|
| aws | >= 2.68 |

## Modules

| Name | Source | Version |
|------|--------|---------|
| atlantis | ../../ | |
| atlantis_access_log_bucket | terraform-aws-modules/s3-bucket/aws | >= 1.9 |
| github_repository_webhook | ../../modules/github-repository-webhook | |

## Resources

| Name |
|------|
| [aws_caller_identity](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/caller_identity) |
| [aws_elb_service_account](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/elb_service_account) |
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/iam_policy_document) |
| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/2.68/docs/data-sources/region) |

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -61,5 +78,4 @@ Go to https://eu-west-1.console.aws.amazon.com/ecs/home?region=eu-west-1#/settin
| github\_webhook\_secret | Github webhook secret |
| github\_webhook\_urls | Github webhook URL |
| task\_role\_arn | The Atlantis ECS task role arn |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
13 changes: 12 additions & 1 deletion examples/github-repository-webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,18 @@ Note that this example may create resources which cost money. Run `terraform des
|------|---------|
| terraform | n/a |

## Modules

| Name | Source | Version |
|------|--------|---------|
| github_repository_webhook | ../../modules/github-repository-webhook | |

## Resources

| Name |
|------|
| [terraform_remote_state](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) |

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -43,5 +55,4 @@ Note that this example may create resources which cost money. Run `terraform des
|------|-------------|
| github\_webhook\_secret | Github webhook secret |
| github\_webhook\_urls | Github webhook URL |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
13 changes: 12 additions & 1 deletion examples/gitlab-repository-webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ Note that this example may create resources which cost money. Run `terraform des
|------|---------|
| terraform | n/a |

## Modules

| Name | Source | Version |
|------|--------|---------|
| gitlab_repository_webhook | ../../modules/gitlab-repository-webhook | |

## Resources

| Name |
|------|
| [terraform_remote_state](https://registry.terraform.io/providers/hashicorp/terraform/latest/docs/data-sources/remote_state) |

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -41,5 +53,4 @@ Note that this example may create resources which cost money. Run `terraform des
|------|-------------|
| gitlab\_webhook\_secret | Gitlab webhook secret |
| gitlab\_webhook\_urls | Gitlab webhook URL |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
11 changes: 10 additions & 1 deletion modules/github-repository-webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,16 @@
|------|---------|
| github | >= 2.4.1 |

## Modules

No Modules.

## Resources

| Name |
|------|
| [github_repository_webhook](https://registry.terraform.io/providers/hashicorp/github/2.4.1/docs/resources/repository_webhook) |

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -31,5 +41,4 @@
|------|-------------|
| this\_repository\_webhook\_secret | Webhook secret |
| this\_repository\_webhook\_urls | Webhook URL |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
11 changes: 10 additions & 1 deletion modules/gitlab-repository-webhook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@
|------|---------|
| gitlab | n/a |

## Modules

No Modules.

## Resources

| Name |
|------|
| [gitlab_project_hook](https://registry.terraform.io/providers/gitlabhq/gitlab/latest/docs/resources/project_hook) |

## Inputs

| Name | Description | Type | Default | Required |
Expand All @@ -30,5 +40,4 @@
|------|-------------|
| this\_repository\_webhook\_secret | Webhook secret |
| this\_repository\_webhook\_urls | Webhook URL |

<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->