aws-amplify / amplify-backend

Home to all tools related to Amplify's code-first DX (Gen 2) for building fullstack apps on AWS
Apache License 2.0
185 stars 62 forks source link

Support for Lambda mock locally #1571

Open ykethan opened 5 months ago

ykethan commented 5 months ago

Environment information

System:
  OS: macOS 14.5
  CPU: (8) arm64 Apple M1
  Memory: 168.66 MB / 16.00 GB
  Shell: /opt/homebrew/bin/fish
Binaries:
  Node: 20.11.1 - ~/.local/share/nvm/v20.11.1/bin/node
  Yarn: 1.22.19 - ~/.local/share/nvm/v20.11.1/bin/yarn
  npm: 10.2.4 - ~/.local/share/nvm/v20.11.1/bin/npm
  pnpm: 8.15.4 - ~/Library/pnpm/pnpm
NPM Packages:
  @aws-amplify/backend: 1.0.2
  @aws-amplify/backend-cli: 1.0.3
  aws-amplify: 6.3.2
  aws-cdk: 2.141.0
  aws-cdk-lib: 2.141.0
  typescript: 5.4.5
AWS environment variables:
  AWS_STS_REGIONAL_ENDPOINTS = regional
  AWS_NODEJS_CONNECTION_REUSE_ENABLED = 1
  AWS_SDK_LOAD_CONFIG = 1
No CDK environment variables

Description

In Gen 1, Amplify CLI supported mocking Lambda functions. Similarly, mocking typescript functions would be great in Gen 2.

josefaidt commented 5 months ago

It would be nice to have a way to invoke functions locally without the need for navigating to the Lambda Console, or wiring up behind Data

Marking as a feature request

Arnoldguti commented 3 months ago

Hi, Any update on this?

Thank you!

suryaishnavi commented 3 weeks ago

I really want this feature. Currently, my team deploys for every small change to test if it’s working. Is there a better way to test the amplify function locally?