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).
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).