Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: adds support for description as a templatestring #43

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Gowiem
Copy link
Member

@Gowiem Gowiem commented Jan 22, 2025

what

why

  • Gives consumers full control over how their Stack descriptions look across all Stacks created by this module.

references

  • N/A

@Gowiem Gowiem self-assigned this Jan 22, 2025
@Gowiem Gowiem requested a review from a team as a code owner January 22, 2025 15:48
main.tf Outdated
enable_local_preview = try(local.stack_configs[each.key].enable_local_preview, var.enable_local_preview)
enable_well_known_secret_masking = try(local.stack_configs[each.key].enable_well_known_secret_masking, var.enable_well_known_secret_masking)
github_action_deploy = try(local.stack_configs[each.key].github_action_deploy, var.github_action_deploy)
labels = local.labels[each.key]
manage_state = try(local.stack_configs[each.key].manage_state, var.manage_state)
name = each.key
name = local.configs[each.key].root_module
Copy link
Member

Choose a reason for hiding this comment

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

Hm, I don't get this change. For multi-instance case we have one root module per multiple workspaces, and this is not a unique value.
Mind elaborating?

Copy link
Member Author

Choose a reason for hiding this comment

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

You're correct! I could've just introduced a nasty bug... And honestly, we should have a test that avoids this.

I made this change as I thought it looked cleaner, but it's totally a bug. Thank you for the catch!!!! 💯

Will follow up with a fix + test.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed -- Thanks again @gberenice!

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.

2 participants