Skip to content

Lambda Function Creation Fails Due to Missing S3 Files and Outdated Python Runtime #4

@pabloariasmora

Description

@pabloariasmora

Description

When deploying the CloudFormation template, the Lambda function creation fails with two critical issues:

  1. Missing S3 Files Error:
Error occurred while GetObject. S3 Error Code: NoSuchKey. S3 Error Message: The specified key does not exist. 
(Service: Lambda, Status Code: 400)
  1. Deprecated Python Runtime:
The runtime parameter of python3.7 is no longer supported for creating or updating AWS Lambda functions.
(Service: Lambda, Status Code: 400)

Steps to Reproduce

  1. Clone the repository
  2. Attempt to deploy the CloudFormation template
  3. Observe the CREATE_FAILED state for Lambda functions

Expected Behavior

  • CloudFormation template should successfully create all resources
  • Lambda functions should be created with current supported Python runtime
  • Required ZIP files should be properly uploaded to S3 before Lambda creation

Current Behavior

  • Lambda function creation fails due to missing S3 files
  • Template attempts to use deprecated Python 3.7 runtime

Suggested Fixes

  1. Update Python runtime from 3.7 to 3.11 in all Lambda function definitions
  2. Add proper DependsOn conditions to ensure ZIP files are uploaded before Lambda creation
  3. Verify the ZIP file names and paths in the template match the actual files being uploaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions