aws / aws/aws-toolkit-visual-studio

S3 Event Source for Lambda Functions in AWS Toolkit

Open
#355 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
No language data
Stars
135
Forks
37
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**

S3 Event Sources do not show up in the "Event Sources" tab of the Lambda Function window in the toolkit.

**To Reproduce**

1. Open any Lambda function using the AWS toolkit for VS.
2. Choose the "Event Sources" tab
3. Choose "+ Add"
4. For "Source Type", select "Amazon S3". Select a bucket you want to use.
5. Choose "OK"

Once you have done this, the event sources area is still blank. The event source is successfully applied (you can see it in the console). Plus if you try to re-add the same bucket, you get an error that you are trying to add a duplicate.

So the issue appears to be that it just does not show up in the list, other event sources, like SQS, do. The event source is created correctly in AWS.

**Expected behavior**

The expected behavior is that when you add an S3 event source, it will show up in the event sources area.

**Screenshots**

1 - Choose S3 Event Source
![1 - Choose S3 Event Source In Toolkit](https://github.com/aws/aws-toolkit-visual-studio/assets/2327203/386ca42f-e8bb-442f-80f8-a44549ffb1ca)

2 - What it looks like in Toolkit after S3 Event Source is Chosen
![2 - What it looks like once in Toolkit after S3 Chosen](https://github.com/aws/aws-toolkit-visual-studio/assets/2327203/e7736134-69fd-4219-bd18-b1fa6af9a95f)

3 - S3 Event Source is Present in Console
![3 - S3 Event Source is Present in Console](https://github.com/aws/aws-toolkit-visual-studio/assets/2327203/b8595b18-a988-47b4-99bb-a624866f8097)

4 - Try to Readd S3 Event Source - Error
![4 - Try to Readd S3 Event Source - Error](https://github.com/aws/aws-toolkit-visual-studio/assets/2327203/13c46ae1-a970-45ad-bd05-4fc6afdf28cd)

**Computer (please complete the following information):**

- Windows Version: Windows 11 21H2 (22000.2295)
- Visual Studio Version: VS 2022 Pro - 17.7.0
- AWS Toolkit for Visual Studio Version: 1.42.0.0

**Additional context**

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue through the Lambda Function window's Event Sources tab: add an Amazon S3 bucket and confirm that the event source is created but not listed. No source file or test is named, so first trace the Event Sources UI and S3-specific listing path; done means an added S3 source appears in the list without breaking duplicate detection.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.