Skip to content

Commit ba40fc9

Browse files
Add stage arn output (#12)
Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
1 parent 43f6b89 commit ba40fc9

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,7 @@ Available targets:
210210
| <a name="output_id"></a> [id](#output\_id) | The ID of the REST API |
211211
| <a name="output_invoke_url"></a> [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API |
212212
| <a name="output_root_resource_id"></a> [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root |
213+
| <a name="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage |
213214
<!-- markdownlint-restore -->
214215

215216

docs/terraform.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,4 +71,5 @@
7171
| <a name="output_id"></a> [id](#output\_id) | The ID of the REST API |
7272
| <a name="output_invoke_url"></a> [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API |
7373
| <a name="output_root_resource_id"></a> [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root |
74+
| <a name="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage |
7475
<!-- markdownlint-restore -->

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,8 @@ output "invoke_url" {
3131
description = "The URL to invoke the REST API"
3232
value = module.this.enabled ? aws_api_gateway_stage.this[0].invoke_url : null
3333
}
34+
35+
output "stage_arn" {
36+
description = "The ARN of the gateway stage"
37+
value = module.this.enabled ? aws_api_gateway_stage.this[0].arn : null
38+
}

0 commit comments

Comments
 (0)