cloudposse / cloudposse/terraform-aws-lambda-function

Churn with `aws_iam_role.this`

Open
#62 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
HCL
Stars
36
Forks
44
PR merge metrics
No merged PRs in 30d

Description

### Describe the Bug

There is a permanent name change with `aws_iam_role.this` which is causing the resource to be recreated on every apply.

This is causing further issues with KMS permissions in the lambda function being revoked, including permissions to the default KMS key.

See https://github.com/serverless/examples/issues/279 for context regarding KMS key

### Expected Behavior

IAM role should not be constantly recreated.

### Steps to Reproduce

Apply module, apply again.

### Screenshots

_No response_

### Environment

_No response_

### Additional Context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.