loading...
Cover image for AWS Services integration testing by leveraging Local Stack and GitHub Actions

AWS Services integration testing by leveraging Local Stack and GitHub Actions

meroware profile image Edward Romero Updated on ・1 min read

My Workflow

I took some time to develop a way to do integration testing of aws services within a github action workflow. It was a lot of fun to do so I hope you find it as useful as I do in my personal and professional projects.

Submission Category:

Maintainer Must-Haves

Link to Code

GitHub logo merowareinstance / example-aws-services-github-worflows

Project is meant to show an example on how to use aws services through local stack in github actions for CI/CD

example-aws-services-github-worflows

Aws Services CI

Example project of aws services setup in github workflows with nodejs and localstack

CI pipeline provides example of integration tests utilizing dynamodb, sqs, and s3

Diagram

Resources

  • High-Level Diagram And Workflow Walk Through
  • Medium Article With Walk Through Of Code
  • Localstack - Fully functional local AWS cloud stack which we use to host s3, sqs, and dynamodb in this example. Feel free to add more services depending on which aws resource you want to test with. NOTE: Read on the documentation of localstack to verify which services are in localstack/localstack image, or whether you need to use the full image localstack/localstack-full
  • AWS javascript SDK - used for interacting with SQS and S3 services
  • Dynogels - used in example as ORM for dynamodb. But you can use whatever you want to connect to dynamodb in the same way



Additional Resources / Info

Discussion

pic
Editor guide