Skip to content

Add --reuse-parameters to update: code-only deploys without a prompt per parameter - #64

Merged
ingalls merged 2 commits into
openaddresses:masterfrom
cheesegrits:reuse-parameters
Nov 5, 2026
Merged

ingalls merged 2 commits into
openaddresses:masterfrom
cheesegrits:reuse-parameters

Conversation

@cheesegrits

@cheesegrits cheesegrits commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Why

deploy update prompts 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:

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.

…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
cheesegrits marked this pull request as ready for review November 2, 2026 22:38
@ingalls
ingalls merged commit a0637bd into openaddresses:master Nov 5, 2026
2 checks passed
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