Setup GitHub Action workflow that starts up LocalStack and deploys the infrastructure

In this video, we will employ LocalStack’s GitHub Actions integration to deploy our application’s infrastructure on LocalStack. Additionally, we will perform a diagnostic test to validate the deployment, ensuring that the infrastructure is set up correctly. This will enable you to conduct cloud integration tests for your application and infrastructure.

LocalStack allows organizations to automate their application testing and integration process using continuous integration (CI). You can seamlessly integrate LocalStack with your current CI platform. LocalStack offers native plugin for CircleCI & GitHub Actions, and a universal driver for other CI platforms. This integration enables you to include LocalStack’s local AWS cloud emulation in your CI pipelines, leverage advanced features such as Cloud Pods and CI analytics, and execute your test and integration suite before deploying to production.

Here’s a breakdown of the steps we’ll take:

  • We’ll look the main.yml file located in the .github directory. This file sets up LocalStack on the GitHub Action runner.
  • We install awslocal and tflocal to deploy the local infrastructure on LocalStack’s cloud emulator running in the CI pipeline.
  • Following this deployment, we utilize awslocal to validate the deployed resources and conduct a diagnostic test on LocalStack to ensure everything is functioning correctly.

Further reading:

Up Next

Cloud pods - Team Collaboration

In this video, we'll delve into Cloud pods, which allow you to snapshot the present state of your LocalStack instance and share it with your team. We'll load a Cloud Pod in our environment through the Web Application. This Cloud Pod will load the infrastructure and application onto our currently active LocalStack instance without manually deploying any resources.

Next

Last modified February 19, 2024: fix the url slug for academy (#1087) (1bfdb9b19)