Current project is just an experiment for running puppeteer in the AWS Lambda environment.
- index.js is the entry point, the code in
handler
function is the one that is executed when the lambda is invoked. - Visit current url to invoke the lambda function.
The deployment happens automatically each time code lands on(We do containers now, README to be updated)main
branch, see Deploy step in publish job.
npm test
docker build --platform linux/amd64 -t lambda-pptr-experiment-container-private:staging .
docker run --read-only -p 9000:8080 lambda-pptr-experiment-container-private:staging
Trigger the entrypoint invocation from another terminal session.
curl "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{}'
docker build --platform linux/x86_64 -t lambda-pptr-experiment-container-private:0.3.3 .
docker tag lambda-pptr-experiment-container-private:0.3.3 ${{AWS_IAM_ID}}.dkr.ecr.us-west-2.amazonaws.com/lambda-pptr-experiment-container-private:0.3.3
docker push ${{AWS_IAM_ID}}.dkr.ecr.us-west-2.amazonaws.com/lambda-pptr-experiment-container-private:0.3.3