-
Notifications
You must be signed in to change notification settings - Fork 166
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
Add support for stack policies #570
Conversation
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.
Nice.
stacker/providers/aws/default.py
Outdated
@@ -414,6 +415,12 @@ def generate_cloudformation_args(stack_name, parameters, tags, template, | |||
else: | |||
args["TemplateBody"] = template.body | |||
|
|||
if stack_policy: | |||
if stack_policy.url: |
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.
Is this for future code, or am I misunderstanding? I don't see any mention of stack_policy.url
in this PR.
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.
Also, can you throw some a debug statement or two in this block? That way we can see if someone is using a stack policy with -v
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.
Yeah, just for the future, in case we ever support uploading to S3 first. I'll add some debug statements to this.
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.
Can you throw a comment in there, just so that if someone sees this they aren't confused in the future?
f04bb9c
to
99e6b99
Compare
Add support for stack policies
Closes #112
This is something I've wanted for a long time. Stack policies are a great way to add an extra layer of protection around sensitive resources, like databases, VPC subnets, etc.
It's entirely possible to make use of stack policies outside of stacker (we have for some time now), but it ends up being pretty manual. It'd be great to be able to automate it with stacker.