A GitHub action to deploy to AWS Fargate on push to the master branch.

Clone this repo:


  1. 499002a update help by Jess Frazelle · 11 months ago master
  2. b8edefe Small improvements (#2) by Admir Trakic · 11 months ago
  3. ddc3023 Update ToC for README.md by toc-me[bot] · 11 months ago
  4. 849db3e toc by Jess Frazelle · 11 months ago
  5. 8b8a456 Fix self-documenting make targets and add colors (#1) by Admir Trakic · 1 year ago

AWS Fargate Action

Travis CI

A GitHub action to deploy to AWS Fargate on push to the master branch.

Table of Contents


workflow "on push to master, deploy to aws fargate" {
  on = "push"
  resolves = ["fargate deploy"]

action "fargate deploy" {
  uses = "jessfraz/aws-fargate-action@master"
  env = {
    AWS_REGION = "us-west-2"
    IMAGE = "r.j3ss.co/party-clippy"
    PORT = "8080"
    COUNT = "2"
    CPU = "256"
    MEMORY = "512"
    BUCKET = "aws-fargate-action"

NOTE: The bucket above needs to be in the same region as AWS_REGION AND it needs to be created before running the action. That is the only prerequisite.

The action will run...


On success, it will output the URL...


Go to that in your browser...



Running the tests

The tests use shellcheck. You don't need to install anything. They run in a container.

$ make test

Using the Makefile

$ make help
aws-apply                      Run terraform apply for Amazon.
aws-destroy                    Run terraform destroy for Amazon.
aws-plan                       Run terraform plan for Amazon.
shellcheck                     Runs the shellcheck tests on the scripts.
test                           Runs the tests on the repository.
update-terraform               Update terraform binary locally from the docker container.
update                         Update terraform binary locally.