github-action-to-lambda

image

Pre-Requisite

1. Create Lambda Function with the name of ```nodejs-deploy``` and add role to communicate with API Gateway
2. Add secrets under GIT REPO secrets (AWS_ACCESS_KEY_ID & AWS_SECRET_ACCESS_KEY)

Create secrets under git repository

image

Create Lambda Role to communicate with API Gateway

Note: Here I have created and attached admin role to lambda

image

Create Lambda Function With Nodejs Runtime and attach existing role

image

Attach API GATEWAY to Lambda from Trigger

step1: Click on Trigger in Lambda and give trigger configuration details

image

step2 Click on create

image

Check application output

image