---
title: "Comment by Stefan Weber on \"Mastering AWS Lambda with Terraform: A Comprehensive Guide\" | Hashnode"
description: "Great article. Thank you for sharing. Regarding the IAM policy my personal preference is to use aws_iam_policy_document instead of an encoded Json, but i guess"
url: "https://hashnode.com/posts/aws-lambda-with-terraform/655112dc1c810a58ae9e0ab3/comment/6554ba96c5739d38258ff905"
---

[Discussion](https://hashnode.com/posts/aws-lambda-with-terraform/655112dc1c810a58ae9e0ab3)

Comment [Mastering AWS Lambda with Terraform: A Comprehensive Guide](https://hashnode.com/posts/aws-lambda-with-terraform/655112dc1c810a58ae9e0ab3)

[Stefan Weber](https://hashnode.com/@stefanweber)

[Nov 15, 2023](https://hashnode.com/posts/aws-lambda-with-terraform/655112dc1c810a58ae9e0ab3/comment/6554ba96c5739d38258ff905)

Great article. Thank you for sharing. Regarding the IAM policy my personal preference is to use aws\_iam\_policy\_document instead of an encoded Json, but i guess that this is a matter of "flavor"

[Sebastian Ball](https://hashnode.com/@sebbeldev)

[Nov 15, 2023](https://hashnode.com/posts/aws-lambda-with-terraform/655112dc1c810a58ae9e0ab3/comment/6554ba96c5739d38258ff905#reply-6555034b1ad51639886b05fb)

Thanks for your kind words and your feedback, Stefan. You are right, the aws\_iam\_policy\_document is easier to reason and work with. I just wanted to take the shortcut to post a working policy to get IAM out of the way, but now I am considering just rewriting the IAM parts.
