-
Notifications
You must be signed in to change notification settings - Fork 313
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
Support UsePreviousValue in parameters #77
Comments
Implementation-wise, could allow stack config parameters to accept dicts, e.g: parameters:
regular_style: 'my_value'
verbose_style:
value: 'my_value'
use_previous_value: true
|
Hi @Nathkc, |
No problem, I'll do my best. We have two teams: infrastructure and development. Infrastructure have deployed a stack. Development now push AMI updates with:
This only changes a parameter. It doesn't change the template, which is important:
Now infrastructure needs to update the stack. Remember the development team hasn't updated the stack source. If we blindly deploy, it'll revert their changes. Our options are:
|
Hi @Nathkc, thanks for that! Personally, my opinion the issue is you have multiple deployment methods - AWS CLI and Sceptre. I recommend trying to stick to a single method across your teams- and possibly using Sceptre with in a CI/CD pipeline to automatically push AMI changes. It may also be advantageous to create a custom resolver to dynamically pick up the new AMI ID that is created by your developers. |
@theseanything here's a valid use case: Input parameter for RDS master password that comes from an environment variable or var argument. I want to provide this on create, but use previous value on update. |
If anyone ever wants to reopen this, a PR was sent in that was never merged |
CD scripts can update e.g ECS image refs with CloudFormation's UsePreviousValue flag. This ensures only the defined parameter is updated.
It'd be useful if Sceptre supported the same, to be sure we don't revert such changes on the next
update-stack
.cfn-sphere
has something similar in it's KeepOrUse macro.The text was updated successfully, but these errors were encountered: