brabster / crucible

AWS CloudFormation templates built with Clojure
Eclipse Public License 1.0
72 stars 18 forks source link

Condition policy #172

Closed AgentO3 closed 5 years ago

AgentO3 commented 5 years ago

This adds a conditions section policy that can be used to conditionally create a resource in Cloudformation. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/conditions-section-structure.html

It also refactors the ::resource spec to use the ::policies spec instead of the ::plolicy spec. This is to allow policies with similar data structure to work together.

brabster commented 5 years ago

Hey nice work! I'm a bit tired tonight to figure out whether this change could break existing code, what do you think?

AgentO3 commented 5 years ago

Doesn't look like it will have any breaking changes. All the test pass without the need for any changes.