aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap

[AWS::Lambda::EventSourceMapping] - [Enhancement] - Drift Detection Support

Open
#2,260 1 comment 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
1.1k
Forks
62
PR merge metrics
No merged PRs in 30d

Description

### Name of the resource

AWS::Lambda::EventSourceMapping

### Resource name

_No response_

### Description

Drift detection is not supported for [AWS::Lambda::EventSourceMapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html).

### Other Details

Here's maybe a scenario to explain why this would be needed:

If I create an SQS EventSourceMapping for a Lambda, and then later delete and recreate that queue, the EventSourceMapping will go from ENABLED state to DISABLED state (AWS Lambda does this) and it does not switch back. Cloudformation does not detect this drift and consequently, lambda functions fail to get invoked thus breaking apps.

Ref:
- https://stackoverflow.com/questions/52923002/aws-sqs-lambda-trigger-disabled-automatically

Contributor guide

Open the contributing guide

Research direction

Start by reading the AWS::Lambda::EventSourceMapping documentation linked in the issue and the CloudFormation drift detection documentation. Investigate how the roadmap repository tracks coverage for this resource; done means drift detection identifies the mapping changing from ENABLED to DISABLED after its SQS queue is recreated.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.