Deploy any containerized app on AWS ElasticBeanstalk with GitHub actions and Terraform.

Terraform code

Terraform vars

GitHub Actions

  • if it's the master branch, it will push an image tag with the git hash, and it will update the latest tag too.
  • if it's a tag, named v1.x it will strip the v and tag the image with the version, it won't update the latest tag.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store