Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions infra/dcp/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,9 @@ output "region" {
description = "The GCP region where resources are deployed"
value = var.region
}

output "ingestion_input_path" {
description = "Path within the bucket where raw files should be uploaded"
value = var.ingestion_input_path
}
Comment on lines +63 to +66
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

To maintain consistency with other outputs in this project and avoid providing misleading information when the ingestion feature is disabled, this output should be conditional on var.enable_ingestion. Additionally, the description should be updated to match the one used in the variable definition for consistency. Since this output relies on the ingestion_bucket_url from another stack, ensure this dependency is explicitly documented in the Terraform variable descriptions or comments to prevent confusion regarding its optionality, as per repository rules.

output "ingestion_input_path" {
  description = "Path within the bucket where raw files are uploaded"
  value       = var.enable_ingestion ? var.ingestion_input_path : null
}
References
  1. When an infrastructure component or workflow step has a mandatory dependency on another stack, ensure this requirement is explicitly documented in Terraform variable descriptions or comments to prevent confusion regarding its optionality.


Loading