Repository navigation
Add --reuse-parameters to update: code-only deploys without a prompt per parameter - #64
Merged
Merged
Conversation
…per parameter `deploy update` asks for every template parameter and every tag, each defaulting to the stack's current value. When the only change is the code that is twenty-odd Enters on a stack of any size, and each one is a chance to change a value you meant to keep. `--reuse-parameters` passes cfn-config's new `reuseParameters` override (9.1.0): parameters the stack already has are taken from the stack, and only a parameter the stack does not know, or whose value the template no longer allows, is asked for. Tags get the same treatment here: a tag with a known value, fixed in .deploy or carried by the stack, is not asked about. GitSha still comes from the checkout, and the parameter diff, template diff and changeset confirmations run as before, so the review is unchanged; only the typing is gone.
cheesegrits
marked this pull request as ready for review
November 2, 2026 22:38
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
deploy updateprompts for every template parameter and every tag, each defaulting to the stack's current value. When the only change is the code, that is a prompt per parameter on a stack of any size, and each one is a chance to change a value the operator meant to keep.What
update --reuse-parameters:reuseParametersoverride (Add reuseParameters override: take known parameter values from the stack without prompting cfn-config#16): parameters the stack already has are taken from the stack; only a parameter the stack does not know, or whose value the template no longer allows, is asked for;.deployor carried by the stack, is not asked about.GitSha still comes from the checkout, and the parameter diff, template diff and changeset confirmations run as before, so the review is unchanged; only the typing is gone. A code-only deploy becomes GitSha plus three confirmations.
Depends on
@openaddresses/cfn-config@9.1.1(the dependency bump is in this PR). Three tests on the tag prompt, two red against the old code; help text, README section and changelog line included.