From ba40fc918d2725dee7f902cec6b886b781422a4b Mon Sep 17 00:00:00 2001 From: Mariko Wakabayashi Date: Thu, 3 Feb 2022 16:07:50 -0700 Subject: [PATCH] Add stage arn output (#12) Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> --- README.md | 1 + docs/terraform.md | 1 + outputs.tf | 5 +++++ 3 files changed, 7 insertions(+) diff --git a/README.md b/README.md index 2636566..c936563 100644 --- a/README.md +++ b/README.md @@ -210,6 +210,7 @@ Available targets: | [id](#output\_id) | The ID of the REST API | | [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API | | [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root | +| [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage | diff --git a/docs/terraform.md b/docs/terraform.md index 260a403..2171d9b 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -71,4 +71,5 @@ | [id](#output\_id) | The ID of the REST API | | [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API | | [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root | +| [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage | diff --git a/outputs.tf b/outputs.tf index 4a90742..be4be33 100644 --- a/outputs.tf +++ b/outputs.tf @@ -31,3 +31,8 @@ output "invoke_url" { description = "The URL to invoke the REST API" value = module.this.enabled ? aws_api_gateway_stage.this[0].invoke_url : null } + +output "stage_arn" { + description = "The ARN of the gateway stage" + value = module.this.enabled ? aws_api_gateway_stage.this[0].arn : null +}