From cef9162fa46b95740a7337051b2b3ae15c54d588 Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Mon, 18 Nov 2024 08:58:28 +0000 Subject: [PATCH] feat: adding the additional outputs --- README.md | 4 ++++ outputs.tf | 20 ++++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/README.md b/README.md index 2d40326..925e3a2 100644 --- a/README.md +++ b/README.md @@ -141,6 +141,10 @@ To enable the Cora Data Exports, please see https://catalog.workshops.aws/awscid | Name | Description | |------|-------------| +| [cloudformation\_bucket\_arn](#output\_cloudformation\_bucket\_arn) | The ARN of the bucket to store the CloudFormation templates | +| [cloudformation\_bucket\_name](#output\_cloudformation\_bucket\_name) | The name of the bucket to store the CloudFormation templates | +| [cloudformation\_bucket\_short\_url](#output\_cloudformation\_bucket\_short\_url) | The domain name of the bucket to store the CloudFormation templates | +| [cloudformation\_bucket\_website\_url](#output\_cloudformation\_bucket\_website\_url) | The URL for the bucket to store the CloudFormation templates | | [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 | diff --git a/outputs.tf b/outputs.tf index 55a8e72..f05ba8e 100644 --- a/outputs.tf +++ b/outputs.tf @@ -28,3 +28,23 @@ output "source_account_id" { description = "The account ID of the source account i.e. the management account" value = local.management_account_id } + +output "cloudformation_bucket_name" { + description = "The name of the bucket to store the CloudFormation templates" + value = var.stacks_bucket_name +} + +output "cloudformation_bucket_arn" { + description = "The ARN of the bucket to store the CloudFormation templates" + value = format("arn:aws:s3:::%s", var.stacks_bucket_name) +} + +output "cloudformation_bucket_short_url" { + description = "The domain name of the bucket to store the CloudFormation templates" + value = format("s3://%s", var.stacks_bucket_name) +} + +output "cloudformation_bucket_website_url" { + description = "The URL for the bucket to store the CloudFormation templates" + value = format("https://%s.amazonaws.com", var.stacks_bucket_name) +}