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

Use parameter default values #44

Open
iconara opened this issue Mar 25, 2020 · 1 comment
Open

Use parameter default values #44

iconara opened this issue Mar 25, 2020 · 1 comment

Comments

@iconara
Copy link
Collaborator

iconara commented Mar 25, 2020

When you have parameters in a template with default values, Cuffsert should use these values like the CFN console does.

I often get errors like this (followed by a stack trace, which makes it look scary):

Invalid input for parameter key FooBar. Cannot specify usePreviousValue as true for a parameter key not in the previous template

This feels more like a bug in CFN than in Cuffsert, but working around bugs in CFN is what we have Cuffsert for, right?

It's probably not as easy as parsing the template and sending default values, that would risk overwriting overridden values, and there doesn't seem to be any flag to tell CFN to use default values.

A brute force way to solve it would be to capture the error, parse out the parameter, look for a default value, and run the update again with the default value, until there is an error for a parameter that has no default value, or the update proceeds.

@bittrance do you have a suggestion for a better strategy to solve this?

@rejeep
Copy link
Member

rejeep commented Jun 23, 2022

I ran into this issue today. I "solved" it by updating the template in the AWS UI.

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

No branches or pull requests

2 participants