Skip to content

Commit 9c2c29f

Browse files
authored
Merge pull request #6 from chris-qa-org/add-output-values
Add output values
2 parents 185c491 + 3d48754 commit 9c2c29f

File tree

3 files changed

+22
-2
lines changed

3 files changed

+22
-2
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"

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,16 @@ module "aws_organizations_and_sso" {
9696
|------|-------------|------|---------|:--------:|
9797
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | Resource tags to apply across all resources | `map(string)` | <pre>{<br> "project": "terraform-aws-organization-and-sso"<br>}</pre> | no |
9898
| <a name="input_enable_sso"></a> [enable\_sso](#input\_enable\_sso) | Enable AWS SSO | `bool` | `true` | no |
99-
| <a name="input_organization_config"></a> [organization\_config](#input\_organization\_config) | Organization configuration | `map(any)` | <pre>{<br> "units": {}<br>}</pre> | no |
99+
| <a name="input_organization_config"></a> [organization\_config](#input\_organization\_config) | Organization configuration | `any` | <pre>{<br> "units": {}<br>}</pre> | no |
100100
| <a name="input_region"></a> [region](#input\_region) | AWS Region | `string` | `"eu-west-2"` | no |
101101

102102
## Outputs
103103

104-
No outputs.
104+
| Name | Description |
105+
|------|-------------|
106+
| <a name="output_aws_organizations_account"></a> [aws\_organizations\_account](#output\_aws\_organizations\_account) | Attributes for the AWS Organization Accounts (`aws_organizations_account`): https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/organizations_account#attributes-reference |
107+
| <a name="output_aws_organizations_organization"></a> [aws\_organizations\_organization](#output\_aws\_organizations\_organization) | Attributes for the AWS Organization (`aws_organizations_organization`: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/organizations_organization#attributes-reference) |
108+
| <a name="output_aws_organizations_organizational_unit"></a> [aws\_organizations\_organizational\_unit](#output\_aws\_organizations\_organizational\_unit) | 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 |
105109
<!-- END_TF_DOCS -->
106110

107111
[1]: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_org.html

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)