From 4c4893a5fb1262952d4c1b6c466e785eda982994 Mon Sep 17 00:00:00 2001 From: Hazmei Abdul Rahman Date: Thu, 30 May 2024 17:28:46 +0800 Subject: [PATCH] output ID of the api keys from usage_plan submodule (#30) * chore: output api key id for usage_plan submodule * chore: fix resource name --- modules/usage_plan/outputs.tf | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 modules/usage_plan/outputs.tf diff --git a/modules/usage_plan/outputs.tf b/modules/usage_plan/outputs.tf new file mode 100644 index 0000000..6a92e60 --- /dev/null +++ b/modules/usage_plan/outputs.tf @@ -0,0 +1,6 @@ +output "api_keys_id" { + description = "ID of the api keys" + value = { + for k, v in aws_api_gateway_api_key.key : k => v.id + } +}