-
Notifications
You must be signed in to change notification settings - Fork 164
Adt add enabled flag v2 #115
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
Adt add enabled flag v2 #115
Conversation
All stacks must have at least one resource or AWS returns an error, hence we need to be able to disable a stack within stacker if we don't want it to launch in certain configurations
stacker/actions/build.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems a little late to test for this - any reason not to do it right at the beginning, since you already have the stack?
|
Cool! This is a feature we've been talking about here as well. I'm actually curious how this works with other stack actions - like destroy, etc? Will it lead to issues with those? Also - could you add the enabled flag (probably set to true) with a comment about what it means to https://github.com/remind101/stacker/blob/master/conf/example.yaml - we've used that as a source of documentation for the most part, till we have actual documentation. I'd just set it to true for each stack, and mention that that is the default. Thanks! |
|
+1 i've been using this locally for a couple months now, i forgot to submit a PR for it. I called it re: destroy, in my case if its ignored, it wasn't built, so shouldn't be destroyed. i think that works the same with this. |
|
Ok - so if Should there be a CLI arg to ignore this flag? Probably not - not sure there's any reason you'd want to do that, this seems like something you'd mostly use in a dev stack. |
|
Yep, if you call destroy on a stack which isn't there, it skips it and moves on. I'd argue against a CLI flag as that is more knobs to confuse the user. |
stacker/actions/build.py
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: updated -> submitted
|
Anything else? |
|
Looks good - thanks! |
Would be nice to use a single yaml file for multiple envs and pick certain stacks to deploy on a per-env basis.