Skip to content

feat: Keying stack output addresses by iteration key - #6715

Open
yhakbar wants to merge 1 commit into
mainfrom
feat/keyed-stack-output-addressing
Open

feat: Keying stack output addresses by iteration key#6715
yhakbar wants to merge 1 commit into
mainfrom
feat/keyed-stack-output-addressing

Conversation

@yhakbar

@yhakbar yhakbar commented Aug 20, 2026

Copy link
Copy Markdown
Collaborator

Description

Adds support for addressing components by address despite being expanded.

e.g.

# One element of a unit expanded over for_each
terragrunt stack output 'aurora["web"].role' --experiment block-iteration

# One element of a unit expanded over count, narrowed to the bare value
terragrunt stack output 'shard[0].role' --format raw --experiment block-iteration

TODOs

Read the Gruntwork contribution guidelines.

  • I authored this code entirely myself
  • I am submitting code based on open source software (e.g. MIT, MPL-2.0, Apache)
  • I am adding or upgrading a dependency or adapted code and confirm it has a compatible open source license
  • Update the docs.
  • Update the changelog in the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • This change is backwards compatible.
  • If this change is not forwards compatible (e.g. a new feature), it is gated behind a feature flag.

@vercel

vercel Bot commented Aug 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
terragrunt-docs Ready Ready Preview Aug 21, 2026 7:22pm

Request Review

@coderabbitai

coderabbitai Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your current included review allowance is based on your included PR review attempts over the past 7 days.

Next review available in: 21 minutes

Limit details: You’ve used all 5 included reviews currently available. Your 19 included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.

You’re in a promotional period — use the checkbox below to run this review for free:

  • Run review for free

On-demand reviews are free for the next 29 days. After that, they cost $0.25 per reviewed file.

How can I continue?

Run this review now using the option above, or comment @coderabbitai review --use-credits.

You can also wait for the limit to reset, then comment @coderabbitai review or push new commits to the PR.

An organization admin can change what happens after included review limits in Billing.

How do review limits work?

CodeRabbit enforces per-developer PR review limits within each organization.

For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 8933fbee-984a-4afd-8d44-6a1fa9683ca5

📥 Commits

Reviewing files that changed from the base of the PR and between 286a33c and d0a941d.

📒 Files selected for processing (9)
  • internal/cli/commands/stack/filter_outputs_test.go
  • internal/cli/commands/stack/stack.go
  • internal/stacks/output/nest_outputs_test.go
  • internal/stacks/output/output.go
  • pkg/config/stack.go
  • test/fixtures/stacks/expansion-outputs/live/terragrunt.stack.hcl
  • test/fixtures/stacks/expansion-outputs/units/app/main.tf
  • test/fixtures/stacks/expansion-outputs/units/app/terragrunt.hcl
  • test/integration_stack_expansion_output_tf_test.go

Comment @coderabbitai help to get the list of available commands.

Base automatically changed from feat/bare-enabled-on-unit-and-stack to main August 21, 2026 19:19
@yhakbar
yhakbar force-pushed the feat/keyed-stack-output-addressing branch from 1b9e666 to d0a941d Compare August 21, 2026 19:20
@yhakbar
yhakbar marked this pull request as ready for review August 22, 2026 12:50
@yhakbar
yhakbar requested a review from denis256 as a code owner August 22, 2026 12:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant