Skip to content

Commit

Permalink
Add stage arn output (#12)
Browse files Browse the repository at this point in the history
Co-authored-by: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com>
  • Loading branch information
mwakaba2 and cloudpossebot authored Feb 3, 2022
1 parent 43f6b89 commit ba40fc9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ Available targets:
| <a name="output_id"></a> [id](#output\_id) | The ID of the REST API |
| <a name="output_invoke_url"></a> [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API |
| <a name="output_root_resource_id"></a> [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root |
| <a name="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage |
<!-- markdownlint-restore -->


Expand Down
1 change: 1 addition & 0 deletions docs/terraform.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,5 @@
| <a name="output_id"></a> [id](#output\_id) | The ID of the REST API |
| <a name="output_invoke_url"></a> [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API |
| <a name="output_root_resource_id"></a> [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root |
| <a name="output_stage_arn"></a> [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage |
<!-- markdownlint-restore -->
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit ba40fc9

Please sign in to comment.