Skip to content

aehtatsirk/lambda-git-action

Repository files navigation

lambda-git-action

How to automatically deploy codes in AWS lambda using git action

Whenever we push our codes to our branch, master, using git action, this will automatically update our codes into our lambda function.

Under our main.yaml, we deploy lambda through the following codes:

  • npx ncc build index.ts
    • Compile our index.ts module into a single file, together with all its imported dependencies
  • zip -j deploy.zip ./dist/*
    • Create a zip file named, deploy.zip with the compiled module built by ncc under ./dist/*
  • aws lambda update-function-code
    • Update our function's codes directly to AWS lambda
    • aws lambda update-function-code --function-name=lambda-git-action --zip-file=fileb://deploy.zip

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published