Based entirely on Michael Hausenblas's implementation
Just ported some of the functionality to use Serverless instead + removed the need for init buckets
serverless deploy
Retrieve the endpoint created for you and export a variable containing it.
# Serverless: Stack update finished...
# endpoints:
# POST - https://jn03zi6twg.execute-api.us-east-1.amazonaws.com/dev/configs
# DELETE - https://jn03zi6twg.execute-api.us-east-1.amazonaws.com/dev/configs/{id}
# GET - https://jn03zi6twg.execute-api.us-east-1.amazonaws.com/dev/configs
# GET - https://jn03zi6twg.execute-api.us-east-1.amazonaws.com/dev/summary
# GET - https://jn03zi6twg.execute-api.us-east-1.amazonaws.com/dev/findings/{id}
export ECRSCANAPI_URL="https://jn03zi6twg.execute-api.us-east-1.amazonaws.com/dev"
./container_push.sh
curl -s --header "Content-Type: application/json" --request POST --data @sample-config.json $ECRSCANAPI_URL/configs/
You might get rate limited from the ECR Vuln scanner