cloudposse / terraform-aws-lambda-function

A module for launching Lambda Fuctions
https://cloudposse.com/accelerate
Apache License 2.0
30 stars 40 forks source link

Add support for inline IAM policy #68

Closed jpalomaki closed 2 months ago

jpalomaki commented 2 months ago

what

Adds support for attaching an inline IAM policy to the function IAM role.

why

Useful for defining a (simple) IAM policy that is declared, and deployed, in-tandem with the Lambda function itself.

Our use case: we use terragrunt to deploy a simple function using this module (straight out of terraform registry), so we'd like to avoid having to create a wrapper module or a separate customer-managed policy, for adding some necessary (but simple) permissions.

references

No related GitHub issue (but I can create one if needed).

jpalomaki commented 2 months ago

FWIW, I have run a quick plan/apply test ✅ using my fork branch as source

hans-d commented 2 months ago

Hi @jpalomaki, thanks for your contribution.

hans-d commented 2 months ago

/terratest

github-actions[bot] commented 2 months ago

These changes were released in v0.5.4.