I'm going to use Jenkins for CI/CD for the first time in my project. So, I'm using "gitHub hook trigger for GITScm polling" to automatically make the code into a docker image when github pushed, and upload the image to the ECR when passing the test using "pytest".
However, it is burdensome to run the Docker image directly on the Jenkins master server and operate the pytest, so I just want to test the code in aws lambda whenever it is pushed.(in other words, I want to use lambda as Jenkins agent)
I want to implement this process through Jenkins pipeline(Jenkinsfile), but I don't know how. Is there a way to create and deploy aws lambda through the Jenkins pipeline?