Skip to content

Commit

Permalink
remove stack outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Feb 12, 2026
1 parent 8554f79 commit 8ca5bcb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 19 deletions.
9 changes: 0 additions & 9 deletions common/data.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,3 @@ data "aws_servicecatalog_provisioning_artifacts" "this" {
accept_language = var.accept_language
product_id = var.product_id
}

# Get CloudFormation stack outputs if provisioned product exists
data "aws_cloudformation_stack" "this" {
count = var.retrieve_stack_outputs ? 1 : 0

name = format("SC-%s-%s", aws_servicecatalog_provisioned_product.this.id, aws_servicecatalog_provisioned_product.this.name)

depends_on = [aws_servicecatalog_provisioned_product.this]
}
10 changes: 0 additions & 10 deletions common/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,11 @@ output "provisioned_product_status_message" {
value = aws_servicecatalog_provisioned_product.this.status_message
}

output "cloudformation_stack_arn" {
description = "The ARN of the CloudFormation stack"
value = var.retrieve_stack_outputs ? try(data.aws_cloudformation_stack.this[0].id, null) : null
}

output "launch_role_arn" {
description = "The ARN of the launch role"
value = aws_servicecatalog_provisioned_product.this.launch_role_arn
}

output "stack_outputs" {
description = "CloudFormation stack outputs"
value = var.retrieve_stack_outputs ? try(data.aws_cloudformation_stack.this[0].outputs, {}) : {}
}

output "portfolio_id" {
description = "The ID of the portfolio used"
value = local.portfolio_id
Expand Down

0 comments on commit 8ca5bcb

Please sign in to comment.