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 +}