-
Notifications
You must be signed in to change notification settings - Fork 9.5k
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
Backport of recent JSON output changes #28982
Merged
alisdair
merged 3 commits into
v1.0
from
backport/alisdair/jsonplan-drift/unlikely-hopeful-falcon
Jun 18, 2021
Merged
Backport of recent JSON output changes #28982
alisdair
merged 3 commits into
v1.0
from
backport/alisdair/jsonplan-drift/unlikely-hopeful-falcon
Jun 18, 2021
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
teamterraform
force-pushed
the
backport/alisdair/jsonplan-drift/unlikely-hopeful-falcon
branch
from
June 18, 2021 15:38
79dcae8
to
0a3968d
Compare
…ions (#28889) * jsonplan and jsonstate: include sensitive_values in state representations A sensitive_values field has been added to the resource in state and planned values which is a map of all sensitive attributes with the values set to true. It wasn't entirely clear to me if the values in state would suffice, or if we also need to consult the schema - I believe that this is sufficient for state files written since v0.15, and if that's incorrect or insufficient, I'll add in the provider schema check as well. I also updated the documentation, and, since we've considered this before, bumped the FormatVersions for both jsonstate and jsonplan.
The "references" included in the expression representation now properly unwrap for each traversal step, to match what was documented.
Previously, if any resources were found to have drifted, the JSON plan output would include a drift entry for every resource in state. This commit aligns the JSON plan output with the CLI UI, and only includes those resources where the old value does not equal the new value---i.e. drift has been detected. Also fixes a bug where the "address" field was missing from the drift output, and adds some test coverage.
alisdair
force-pushed
the
backport/alisdair/jsonplan-drift/unlikely-hopeful-falcon
branch
from
June 18, 2021 15:45
446d98f
to
ef7a4e3
Compare
alisdair
changed the title
Backport of json-output: Omit unchanged resource_drift entries into v1.0
Backport of recent JSON output changes
Jun 18, 2021
alisdair
approved these changes
Jun 18, 2021
alisdair
deleted the
backport/alisdair/jsonplan-drift/unlikely-hopeful-falcon
branch
June 18, 2021 16:04
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. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Backport
Backport to v1.0 of three recent PRs which affect the JSON plan output format: