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

ext/dynblock: Allow callers to veto for_each values #634

Merged
merged 1 commit into from Oct 16, 2023

Commits on Oct 13, 2023

  1. ext/dynblock: Allow callers to veto for_each values

    Callers might have additional rules for what's acceptable in a for_each
    value for a dynamic block. For example, Terraform wants to forbid using
    sensitive values here because it would cause the expansion to disclose the
    length of the given collection.
    
    Therefore this provides a hook point for callers to insert additional
    checks just after the for_each expression has been evaluated and before
    any of the built-in checks are run.
    
    This introduces the "functional options" pattern for ExpandBlock for the
    first time, as a way to extend the API without breaking compatibility with
    existing callers. There is currently only this one option.
    apparentlymart committed Oct 13, 2023
    Configuration menu
    Copy the full SHA
    a3f04c4 View commit details
    Browse the repository at this point in the history