Skip to content

Commit 5f7295d

Browse files
authored
chore: update documentation based on latest terraform-docs which includes module and resource sections (#3)
1 parent a72294c commit 5f7295d

File tree

7 files changed

+64
-13
lines changed

7 files changed

+64
-13
lines changed

.gitignore

Lines changed: 27 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,29 @@
1-
.terraform
2-
terraform.tfstate
3-
*.tfstate*
4-
terraform.tfvars
1+
# Local .terraform directories
2+
**/.terraform/*
53

4+
# Terraform lockfile
65
.terraform.lock.hcl
6+
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

.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.45.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: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ module "step_function" {
128128

129129
| Name | Version |
130130
|------|---------|
131-
| terraform | >= 0.12.6 |
131+
| terraform | >= 0.13.1 |
132132
| aws | >= 3.27 |
133133

134134
## Providers
@@ -137,6 +137,22 @@ module "step_function" {
137137
|------|---------|
138138
| aws | >= 3.27 |
139139

140+
## Modules
141+
142+
No Modules.
143+
144+
## Resources
145+
146+
| Name |
147+
|------|
148+
| [aws_iam_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_policy_attachment) |
149+
| [aws_iam_policy_document](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/data-sources/iam_policy_document) |
150+
| [aws_iam_policy](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_policy) |
151+
| [aws_iam_role_policy_attachment](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_role_policy_attachment) |
152+
| [aws_iam_role](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/iam_role) |
153+
| [aws_region](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/data-sources/region) |
154+
| [aws_sfn_state_machine](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/sfn_state_machine) |
155+
140156
## Inputs
141157

142158
| Name | Description | Type | Default | Required |
@@ -182,7 +198,6 @@ module "step_function" {
182198
| this\_state\_machine\_creation\_date | The date the Step Function was created |
183199
| this\_state\_machine\_id | The ARN of the Step Function |
184200
| this\_state\_machine\_status | The current status of the Step Function |
185-
186201
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->
187202

188203
## Authors

examples/complete/README.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Note that this example may create resources which cost money. Run `terraform des
2222

2323
| Name | Version |
2424
|------|---------|
25-
| terraform | >= 0.12.6 |
25+
| terraform | >= 0.13.1 |
2626
| aws | >= 3.27 |
2727
| random | >= 2 |
2828

@@ -33,6 +33,20 @@ Note that this example may create resources which cost money. Run `terraform des
3333
| aws | >= 3.27 |
3434
| random | >= 2 |
3535

36+
## Modules
37+
38+
| Name | Source | Version |
39+
|------|--------|---------|
40+
| disabled_step_function | ../../ | |
41+
| step_function | ../../ | |
42+
43+
## Resources
44+
45+
| Name |
46+
|------|
47+
| [aws_sqs_queue](https://registry.terraform.io/providers/hashicorp/aws/3.27/docs/resources/sqs_queue) |
48+
| [random_pet](https://registry.terraform.io/providers/hashicorp/random/2/docs/resources/pet) |
49+
3650
## Inputs
3751

3852
No input.
@@ -47,5 +61,4 @@ No input.
4761
| this\_state\_machine\_creation\_date | The date the State Machine was created |
4862
| this\_state\_machine\_id | The ARN of the State Machine |
4963
| this\_state\_machine\_status | The current status of the State Machine |
50-
5164
<!-- END OF PRE-COMMIT-TERRAFORM DOCS HOOK -->

examples/complete/versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 0.12.6"
2+
required_version = ">= 0.13.1"
33

44
required_providers {
55
aws = ">= 3.27"

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
locals {
2-
create_role = var.create && var.create_role && !var.use_existing_role
2+
create_role = var.create && var.create_role && ! var.use_existing_role
33
aws_region = local.create_role && var.aws_region_assume_role == "" ? data.aws_region.current[0].name : var.aws_region_assume_role
44

55
role_name = local.create_role ? coalesce(var.role_name, var.name) : null

versions.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
terraform {
2-
required_version = ">= 0.12.6"
2+
required_version = ">= 0.13.1"
33

44
required_providers {
55
aws = ">= 3.27"

0 commit comments

Comments
 (0)