From 08d1f313e89e65bad66c9eeb824833f1590a102f Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Mon, 18 Nov 2024 08:45:26 +0000 Subject: [PATCH] feat: adding the additional account ids to the outputs --- README.md | 2 ++ outputs.tf | 10 ++++++++++ 2 files changed, 12 insertions(+) diff --git a/README.md b/README.md index 07d0339..2d40326 100644 --- a/README.md +++ b/README.md @@ -141,9 +141,11 @@ To enable the Cora Data Exports, please see https://catalog.workshops.aws/awscid | Name | Description | |------|-------------| +| [destination\_account\_id](#output\_destination\_account\_id) | The account ID of the destination bucket | | [destination\_bucket\_arn](#output\_destination\_bucket\_arn) | The ARN of the destination bucket | | [destination\_bucket\_name](#output\_destination\_bucket\_name) | The name of the destination bucket | | [destination\_bucket\_short\_url](#output\_destination\_bucket\_short\_url) | The domain name of the destination bucket | | [destination\_bucket\_website\_url](#output\_destination\_bucket\_website\_url) | The URL for the destination bucket | +| [source\_account\_id](#output\_source\_account\_id) | The account ID of the source account i.e. the management account | diff --git a/outputs.tf b/outputs.tf index 18bbbe6..55a8e72 100644 --- a/outputs.tf +++ b/outputs.tf @@ -18,3 +18,13 @@ output "destination_bucket_website_url" { description = "The URL for the destination bucket" value = format("https://%s.amazonaws.com", module.cloudformation_bucket.s3_bucket_id) } + +output "destination_account_id" { + description = "The account ID of the destination bucket" + value = local.cost_analysis_account_id +} + +output "source_account_id" { + description = "The account ID of the source account i.e. the management account" + value = local.management_account_id +}