From ef27722d92a9871e47ff9570900ef780f2481a01 Mon Sep 17 00:00:00 2001 From: nitrocode Date: Tue, 14 Dec 2021 11:43:18 -0600 Subject: [PATCH] Output `ram_resource_share_id` (#17) * Output ram_resource_share_id * Auto Format * Add name to README * Auto Format Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> --- README.md | 7 +++++-- README.yaml | 2 ++ docs/terraform.md | 1 + outputs.tf | 5 +++++ 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 66ab90f..d1a5eb3 100644 --- a/README.md +++ b/README.md @@ -317,6 +317,7 @@ Available targets: | Name | Description | |------|-------------| +| [ram\_resource\_share\_id](#output\_ram\_resource\_share\_id) | RAM resource share ID | | [subnet\_route\_ids](#output\_subnet\_route\_ids) | Subnet route identifiers combined with destinations | | [transit\_gateway\_arn](#output\_transit\_gateway\_arn) | Transit Gateway ARN | | [transit\_gateway\_association\_default\_route\_table\_id](#output\_transit\_gateway\_association\_default\_route\_table\_id) | Transit Gateway association default route table ID | @@ -492,14 +493,16 @@ Check out [our other projects][github], [follow us on twitter][twitter], [apply ### Contributors -| [![Erik Osterman][osterman_avatar]][osterman_homepage]
[Erik Osterman][osterman_homepage] | [![Andriy Knysh][aknysh_avatar]][aknysh_homepage]
[Andriy Knysh][aknysh_homepage] | -|---|---| +| [![Erik Osterman][osterman_avatar]][osterman_homepage]
[Erik Osterman][osterman_homepage] | [![Andriy Knysh][aknysh_avatar]][aknysh_homepage]
[Andriy Knysh][aknysh_homepage] | [![RB][nitrocode_avatar]][nitrocode_homepage]
[RB][nitrocode_homepage] | +|---|---|---| [osterman_homepage]: https://github.com/osterman [osterman_avatar]: https://img.cloudposse.com/150x150/https://github.com/osterman.png [aknysh_homepage]: https://github.com/aknysh [aknysh_avatar]: https://img.cloudposse.com/150x150/https://github.com/aknysh.png + [nitrocode_homepage]: https://github.com/nitrocode + [nitrocode_avatar]: https://img.cloudposse.com/150x150/https://github.com/nitrocode.png [![README Footer][readme_footer_img]][readme_footer_link] [![Beacon][beacon]][website] diff --git a/README.yaml b/README.yaml index a4676bf..17ed3bf 100644 --- a/README.yaml +++ b/README.yaml @@ -222,3 +222,5 @@ contributors: github: "osterman" - name: "Andriy Knysh" github: "aknysh" + - name: "RB" + github: "nitrocode" diff --git a/docs/terraform.md b/docs/terraform.md index 5ecc972..c7bc6ce 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -84,6 +84,7 @@ | Name | Description | |------|-------------| +| [ram\_resource\_share\_id](#output\_ram\_resource\_share\_id) | RAM resource share ID | | [subnet\_route\_ids](#output\_subnet\_route\_ids) | Subnet route identifiers combined with destinations | | [transit\_gateway\_arn](#output\_transit\_gateway\_arn) | Transit Gateway ARN | | [transit\_gateway\_association\_default\_route\_table\_id](#output\_transit\_gateway\_association\_default\_route\_table\_id) | Transit Gateway association default route table ID | diff --git a/outputs.tf b/outputs.tf index b10b730..57a05fb 100644 --- a/outputs.tf +++ b/outputs.tf @@ -37,3 +37,8 @@ output "subnet_route_ids" { value = try({ for i, o in module.subnet_route : i => o["subnet_route_ids"] }, {}) description = "Subnet route identifiers combined with destinations" } + +output "ram_resource_share_id" { + value = try(aws_ram_resource_share.default[0].id, "") + description = "RAM resource share ID" +}