Cloud Resume Challenge - Part 3 - CI / CD
At the last part, I will fill in Github Actions, testing of the code and the whole development pipeline. As per the latest best practices in CI / CD, through this project I’ve involved SAM templates for provision and created a deployment pipeline for both frontend and backend infrastructure.
Cloud Resume Challenge - Part 3 - CI / CD
The pipeline is powered by Github Actions instead of using AWS CodePipeline. I decided it would be a good opportunity to dive deeper into Git. Figuring out a Github Actions template wasn’t so challenging keeping in mind that the most important part is not hard-coding your credentials. For this purpose it is essential to put your access keys in Github Secrets after to call on your template.With the pipeline finished, one last thing left to complete the challenge and that is python unit testing. I wrote a test that with the inclusion of moto library which I used to create a mock DynamoDB table to test out if my Lambda function.
A great addition to this pipeline would be updating S3 bucket content through boto3 utilizing python, which is done by the use of CLI command “aws s3 sync” for now.