Skip to content

Commit

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

| Name | Description |
|------|-------------|
| <a name="output_cloudformation_bucket_arn"></a> [cloudformation\_bucket\_arn](#output\_cloudformation\_bucket\_arn) | The ARN of the bucket to store the CloudFormation templates |
| <a name="output_cloudformation_bucket_name"></a> [cloudformation\_bucket\_name](#output\_cloudformation\_bucket\_name) | The name of the bucket to store the CloudFormation templates |
| <a name="output_cloudformation_bucket_short_url"></a> [cloudformation\_bucket\_short\_url](#output\_cloudformation\_bucket\_short\_url) | The domain name of the bucket to store the CloudFormation templates |
| <a name="output_cloudformation_bucket_website_url"></a> [cloudformation\_bucket\_website\_url](#output\_cloudformation\_bucket\_website\_url) | The URL for the bucket to store the CloudFormation templates |
| <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 |
Expand Down
20 changes: 20 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

0 comments on commit cef9162

Please sign in to comment.