Skip to content

Commit

Permalink
feat: adding the additional account ids to the outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Nov 18, 2024
1 parent ce3fb3b commit 08d1f31
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,11 @@ To enable the Cora Data Exports, please see https://catalog.workshops.aws/awscid

| Name | Description |
|------|-------------|
| <a name="output_destination_account_id"></a> [destination\_account\_id](#output\_destination\_account\_id) | The account ID of the destination bucket |
| <a name="output_destination_bucket_arn"></a> [destination\_bucket\_arn](#output\_destination\_bucket\_arn) | The ARN of the destination bucket |
| <a name="output_destination_bucket_name"></a> [destination\_bucket\_name](#output\_destination\_bucket\_name) | The name of the destination bucket |
| <a name="output_destination_bucket_short_url"></a> [destination\_bucket\_short\_url](#output\_destination\_bucket\_short\_url) | The domain name of the destination bucket |
| <a name="output_destination_bucket_website_url"></a> [destination\_bucket\_website\_url](#output\_destination\_bucket\_website\_url) | The URL for the destination bucket |
| <a name="output_source_account_id"></a> [source\_account\_id](#output\_source\_account\_id) | The account ID of the source account i.e. the management account |
<!-- END_TF_DOCS -->

10 changes: 10 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 08d1f31

Please sign in to comment.