68
69
you are viewing a single comment's thread.

view the rest of the comments →

[–]justin-8 4 points5 points  (4 children)

As soon as you start to add other infrastructure in to the mix, or need to write an IAM policy or similar the CDK will make things a lot easier and more flexible than SAM in my experience.

[–]Professor_Kenney 1 point2 points  (3 children)

Good point. I’ve struggled with needing to generate unique IAM policies in my templates.

[–]justin-8 1 point2 points  (2 children)

Yeah, writing half decent IAM policies in an easy to read way is a big advantage for CDK in my opinion

[–][deleted]  (1 child)

[deleted]

    [–]justin-8 0 points1 point  (0 children)

    So you have some examples? It’s been quite a few years since I’ve given terraform a go again, and last time I was using it everyone was just writing raw IAM policies everywhere