Skip to content

Commit 883663c

Browse files
committed
Add output values
* Outputs the full atrribute block for each resource
1 parent 185c491 commit 883663c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,5 +54,7 @@ jobs:
5454
with:
5555
working-dir: .
5656
config-file: .terraform-docs.yml
57+
output-file: README.md
58+
output-method: inject
5759
git-push: true
5860
git-commit-message: "GitHub Action: Generate terraform docs"

outputs.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
output "aws_organizations_organization" {
2+
description = "Attributes for the AWS Organization (`aws_organizations_organization`: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/organizations_organization#attributes-reference)"
3+
value = aws_organizations_organization.root
4+
}
5+
6+
output "aws_organizations_organizational_unit" {
7+
description = "Atrributes for the AWS Organizational Units (`aws_organizations_organizational_unit`): https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/organizations_organizational_unit#attributes-reference"
8+
value = aws_organizations_organizational_unit.unit
9+
}
10+
11+
output "aws_organizations_account" {
12+
description = "Attributes for the AWS Organization Accounts (`aws_organizations_account`): https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/organizations_account#attributes-reference"
13+
value = aws_organizations_account.account
14+
}

0 commit comments

Comments
 (0)