FG
☁️ Cloud & DevOpsAmazon

After integrating Api getaway and lambda on Amazon console I see error lile "Could not list api-gateway event sources."

Freshalmost 9 years ago
Mar 14, 20260 views
Confidence Score88%
88%

Problem

Serverless Framework Version: beta 1.0 Operating System: windows Additional Details: After integrating Api getaway and lambda on Amazon console(Lambda tab) I see error lile "Could not list api-gateway event sources." My yaml file: Functions: lambdaFunction: handler: com.myHandler.DataExtractorLambda events: - schedule: cron(0/1 \ \ \ ? ) - http: path: publicGetaway/getResources method: get Note: Schedule trigger is available for editing and works fine.

Error Output

error lile "Could not list api-gateway event sources."

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Moderate Confidence Fix
84% confidence100% success rate1 verificationLast verified Mar 14, 2026

Solution: After integrating Api getaway and lambda on Amazon console I see error lile "Could not list api-gateway event sources."

Low Risk

@olegZastavnyi thanks for reporting! Could you provide the indentation of your `serverless.yml` file as wrong indentation might lead to the fact that events are not parsed how they should be?

84

Trust Score

1 verification

100% success
  1. 1

    @olegZastavnyi thanks for reporting!

    @olegZastavnyi thanks for reporting!

  2. 2

    Could you provide the indentation of your `serverless.yml` file as wrong indenta

    Could you provide the indentation of your `serverless.yml` file as wrong indentation might lead to the fact that events are not parsed how they should be?

Validation

Resolved in serverless/serverless GitHub issue #1816. Community reactions: 0 upvotes.

Verification Summary

Worked: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

serverlesslambdaawsbug