CICD Unit Testing For Serverless Lambda Backend Code

0

I have a CodeCommit repo that houses all resources for the backend part of my app. From API Gateway to Cognito to Lambda, everything is deployed from this repo, which is mostly written in terraform but the lambda functions are written in Python. Every dev has their own branch and we all push to a common branch called dev. Merging with dev puts the pipeline in motion and changes to deployments happens.

Currently there's no manual approval of PRs to merge with dev, but I will like to at least make sure all the unittest are passing before merging can go through to dev. How do I achieve this?

toussyn
질문됨 3달 전173회 조회
1개 답변
1

Hello.

Why not try using the architectures featured on the AWS Blog?
To give you a quick overview, you can catch events with EventBridge based on the pull request action to a branch, run CodeBuild, and perform tests.
I thought it would be a good idea to check the results of this test before merging.
https://aws.amazon.com/jp/blogs/devops/validating-aws-codecommit-pull-requests-with-aws-codebuild-and-aws-lambda/

I think this blog will also be helpful.
https://medium.com/@kpiroddi/creating-a-aws-codecommit-pull-request-workflow-with-terraform-2e57138cef95

profile picture
전문가
답변함 3달 전
profile pictureAWS
전문가
검토됨 3달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠