mbj / stratosphere

Haskell EDSL and type-checker for AWS CloudFormation templates
MIT License
162 stars 19 forks source link

DSL for Policies #64

Open MichaelXavier opened 6 years ago

MichaelXavier commented 6 years ago

I was wondering if it would make sense for stratosphere to have another DSL for generating stack policies. It seems like a simpler and more stable API than templates and they are uploaded together.

jdreaver commented 6 years ago

Hmm, stack policies seem very similar to IAM policies. I wonder if it would make sense to make an entirely separate package from stratosphere to generate IAM policies in general, and then CloudFormation stack policies can be a specific instance of that.

I'm thinking this should be a separate package from stratosphere, but it would be a very welcome addition to the current suite of Haskell AWS tooling. I am personally fine with just writing policies in JSON via aeson-qq, but my policies are all pretty simple. I'll keep this issue open in case either myself or someone else has complex enough policies that typing them in Haskell would be worth the investment into making a new package.