Skip to content

Update data stored in plan files to enable using PSS with saved plans #37246

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

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

Conversation

SarahFrench
Copy link
Member

@SarahFrench SarahFrench commented Jun 17, 2025

Some prototyping/implementation for the PSS project that's only relevant to the apply command.

These changes enable saving PSS config in a plan, similar to how a planfile can store backend config and be used to configure a backend.Backend during an apply command that is supplied with a pre-existing plan file.

Target Release

N/A

Rollback Plan

  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

CHANGELOG entry

  • This change is user-facing and I added a changelog entry.
  • This change is not user-facing.

@SarahFrench SarahFrench marked this pull request as ready for review June 18, 2025 17:21
@SarahFrench SarahFrench requested a review from a team as a code owner June 18, 2025 17:21
@SarahFrench SarahFrench requested a review from radeksimko June 18, 2025 17:21
Comment on lines +189 to +196
// TODO: Is this needed? Are there issues if the same provider is used for PSS and resource management also?
if p.StateStore.Provider != nil {
m[p.StateStore.Provider.Source.String()] = addrs.AbsProviderConfig{
Module: addrs.RootModule, // state_store block is only in Root
Provider: *p.StateStore.Provider.Source,
// No aliases used for PSS provider.
}
}
Copy link
Member Author

Choose a reason for hiding this comment

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

This might benefit from some discussion/pair programming?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog-needed Add this to your PR if the change does not require a changelog entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant