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

Ephemeral expansion and add tests for ephemeral values #35833

Merged
merged 11 commits into from
Oct 14, 2024

Conversation

DanielMSchmidt
Copy link
Collaborator

@DanielMSchmidt DanielMSchmidt commented Oct 10, 2024

This PR ensures we check for ephemeral values for all possible expansions (for_each / count on resource / module / import).
It also refactors the plan tests and adds a lot of new tests for everything I could find in the RFC, some are skipped to leave the implementation to future PRs.

Target Release

1.10.x

Draft CHANGELOG entry

ENHANCEMENTS

  • Ephemeral Values: Error if ephemeral values are used in the context of count or for_each

internal/terraform/context_plan_ephemeral_test.go Outdated Show resolved Hide resolved
internal/terraform/context_test.go Outdated Show resolved Hide resolved
internal/terraform/context_test.go Outdated Show resolved Hide resolved
internal/terraform/eval_count.go Outdated Show resolved Hide resolved
DanielMSchmidt and others added 2 commits October 14, 2024 17:13
Co-authored-by: Radek Simko <radeksimko@users.noreply.github.com>
@DanielMSchmidt DanielMSchmidt merged commit 5a9bf08 into main Oct 14, 2024
10 checks passed
@DanielMSchmidt DanielMSchmidt deleted the ephemeral-values-add-tests branch October 14, 2024 15:26
Copy link
Contributor

Reminder for the merging maintainer: if this is a user-visible change, please update the changelog on the appropriate release branch.

Copy link
Contributor

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants