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

Make remote state reference handling more robust #49

Merged
merged 2 commits into from
Oct 14, 2024

Conversation

rmaynardap
Copy link
Collaborator

In the event where a hook script execution is required in order to make terraform
execute in order to show the state (such as when a hook script defines the value of
specific variables) there is a circular condition where the remote outputs can not
be determined by terraform directly, and still made available to the hook.

In order to work around this issue, when the two initial mechanisms to get remote
state items fail, then the state is acquired from the backend (currently only S3
supported), and the state of the remote reference is used directly to obtain the
values.

This PR also updates dependencies to address GHSA-7m4m-pwhv-49c5

In the event where a hook script execution is required in order to make terraform
execute in order to show the state (such as when a hook script defines the value of
specific variables) there is a circular condition where the remote outputs can not
be determined by terraform directly, and still made available to the hook.

In order to work around this issue, when the two initial mechanisms to get remote
state items fail, then the state is acquired from the backend (currently only S3
supported), and the state of the remote reference is used directly to obtain the
values.
@rmaynardap rmaynardap merged commit 73621a4 into master Oct 14, 2024
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