Skip to content

Commit f2668d9

Browse files
authored
chore: update documentation based on latest terraform-docs which includes module and resource sections (#126)
1 parent d9e1d08 commit f2668d9

File tree

5 files changed

+76
-9
lines changed

5 files changed

+76
-9
lines changed

.gitignore

Lines changed: 30 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1-
.terraform
2-
terraform.tfstate
3-
*.tfstate*
4-
terraform.tfvars
1+
# Local .terraform directories
2+
**/.terraform/*
3+
4+
# Terraform lockfile
55
.terraform.lock.hcl
66

7+
# .tfstate files
8+
*.tfstate
9+
*.tfstate.*
10+
11+
# Crash log files
12+
crash.log
13+
14+
# Exclude all .tfvars files, which are likely to contain sentitive data, such as
15+
# password, private keys, and other secrets. These should not be part of version
16+
# control as they are data points which are potentially sensitive and subject
17+
# to change depending on the environment.
18+
*.tfvars
19+
20+
# Ignore override files as they are usually used to override resources locally and so
21+
# are not checked in
22+
override.tf
23+
override.tf.json
24+
*_override.tf
25+
*_override.tf.json
26+
27+
# Ignore CLI configuration files
28+
.terraformrc
29+
terraform.rc
30+
31+
# Lambda directories
732
builds/
33+
__pycache__/

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: git://github.com/antonbabenko/pre-commit-terraform
3-
rev: v1.44.0
3+
rev: v1.46.0
44
hooks:
55
- id: terraform_fmt
66
- id: terraform_validate
@@ -21,6 +21,6 @@ repos:
2121
- '--args=--only=terraform_standard_module_structure'
2222
- '--args=--only=terraform_workspace_remote'
2323
- repo: git://github.com/pre-commit/pre-commit-hooks
24-
rev: v3.3.0
24+
rev: v3.4.0
2525
hooks:
2626
- id: check-merge-conflict

README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,22 @@ To run the tests:
9494
|------|---------|
9595
| aws | >= 2.35 |
9696

97+
## Modules
98+
99+
| Name | Source | Version |
100+
|------|--------|---------|
101+
| lambda | terraform-aws-modules/lambda/aws | 1.28.0 |
102+
103+
## Resources
104+
105+
| Name |
106+
|------|
107+
| [aws_cloudwatch_log_group](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/resources/cloudwatch_log_group) |
108+
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/data-sources/iam_policy_document) |
109+
| [aws_sns_topic_subscription](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/resources/sns_topic_subscription) |
110+
| [aws_sns_topic](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/data-sources/sns_topic) |
111+
| [aws_sns_topic](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/resources/sns_topic) |
112+
97113
## Inputs
98114

99115
| Name | Description | Type | Default | Required |
@@ -140,7 +156,6 @@ To run the tests:
140156
| notify\_slack\_lambda\_function\_name | The name of the Lambda function |
141157
| notify\_slack\_lambda\_function\_version | Latest published version of your Lambda function |
142158
| this\_slack\_topic\_arn | The ARN of the SNS topic from which messages will be sent to Slack |
143-
144159
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
145160

146161
## Authors

examples/cloudwatch-alerts-to-slack/README.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,22 @@ Note that this example may create resources which can cost money. Run `terraform
7171
| aws | >= 2.35 |
7272
| random | >= 2 |
7373

74+
## Modules
75+
76+
| Name | Source | Version |
77+
|------|--------|---------|
78+
| notify_slack | ../../ | |
79+
| vpc | terraform-aws-modules/vpc/aws | |
80+
81+
## Resources
82+
83+
| Name |
84+
|------|
85+
| [aws_cloudwatch_metric_alarm](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/resources/cloudwatch_metric_alarm) |
86+
| [aws_kms_ciphertext](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/resources/kms_ciphertext) |
87+
| [aws_kms_key](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/resources/kms_key) |
88+
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |
89+
7490
## Inputs
7591

7692
No input.
@@ -87,5 +103,4 @@ No input.
87103
| notify\_slack\_lambda\_function\_name | The name of the Lambda function |
88104
| notify\_slack\_lambda\_function\_version | Latest published version of your Lambda function |
89105
| this\_sns\_topic\_arn | The ARN of the SNS topic from which messages will be sent to Slack |
90-
91106
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/notify-slack-simple/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,18 @@ Note that this example may create resources which can cost money (AWS Elastic IP
3232
|------|---------|
3333
| aws | >= 2.35 |
3434

35+
## Modules
36+
37+
| Name | Source | Version |
38+
|------|--------|---------|
39+
| notify_slack | ../../ | |
40+
41+
## Resources
42+
43+
| Name |
44+
|------|
45+
| [aws_sns_topic](https://registry.terraform.io/providers/hashicorp/aws/2.35/docs/resources/sns_topic) |
46+
3547
## Inputs
3648

3749
No input.
@@ -49,5 +61,4 @@ No input.
4961
| notify\_slack\_lambda\_function\_name | The name of the Lambda function |
5062
| notify\_slack\_lambda\_function\_version | Latest published version of your Lambda function |
5163
| this\_sns\_topic\_arn | The ARN of the SNS topic from which messages will be sent to Slack |
52-
5364
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

0 commit comments

Comments
 (0)