From 7247641bbf0c1531d58c4aad657956bc0a523d2d Mon Sep 17 00:00:00 2001 From: Mariko Wakabayashi Date: Thu, 3 Feb 2022 17:06:07 -0500 Subject: [PATCH 1/2] Add stage arn output --- README.md | 1 + outputs.tf | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index d7629ed..e621e7a 100644 --- a/README.md +++ b/README.md @@ -207,6 +207,7 @@ Available targets: | [execution\_arn](#output\_execution\_arn) | The execution ARN part to be used in lambda\_permission's source\_arn when allowing API Gateway to invoke a Lambda
function, e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j, which can be concatenated with allowed stage,
method and resource path.The ARN of the Lambda function that will be executed. | | [id](#output\_id) | The ID of the REST API | | [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API | +| [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage | | [root\_resource\_id](#output\_root\_resource\_id) | The resource ID of the REST API's root | 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 +} From 409b98156a267277b7d7db69b166edc946efa51e Mon Sep 17 00:00:00 2001 From: cloudpossebot <11232728+cloudpossebot@users.noreply.github.com> Date: Thu, 3 Feb 2022 22:15:35 +0000 Subject: [PATCH 2/2] Auto Format --- README.md | 4 ++-- docs/terraform.md | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e621e7a..30728cc 100644 --- a/README.md +++ b/README.md @@ -207,8 +207,8 @@ Available targets: | [execution\_arn](#output\_execution\_arn) | The execution ARN part to be used in lambda\_permission's source\_arn when allowing API Gateway to invoke a Lambda
function, e.g., arn:aws:execute-api:eu-west-2:123456789012:z4675bid1j, which can be concatenated with allowed stage,
method and resource path.The ARN of the Lambda function that will be executed. | | [id](#output\_id) | The ID of the REST API | | [invoke\_url](#output\_invoke\_url) | The URL to invoke the REST API | -| [stage\_arn](#output\_stage\_arn) | The ARN of the gateway stage | | [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 | @@ -311,7 +311,7 @@ In general, PRs are welcome. We follow the typical "fork-and-pull" Git workflow. ## Copyright -Copyright © 2017-2021 [Cloud Posse, LLC](https://cpco.io/copyright) +Copyright © 2017-2022 [Cloud Posse, LLC](https://cpco.io/copyright) diff --git a/docs/terraform.md b/docs/terraform.md index a959779..b4e01fd 100644 --- a/docs/terraform.md +++ b/docs/terraform.md @@ -69,4 +69,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 |