Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jessfraz/aws-fargate-action
A GitHub action to deploy to AWS Fargate on push to the master branch.
https://github.com/jessfraz/aws-fargate-action
Last synced: 15 days ago
JSON representation
A GitHub action to deploy to AWS Fargate on push to the master branch.
- Host: GitHub
- URL: https://github.com/jessfraz/aws-fargate-action
- Owner: jessfraz
- Created: 2018-11-20T20:15:51.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-02T15:41:09.000Z (almost 6 years ago)
- Last Synced: 2024-08-04T09:02:58.796Z (3 months ago)
- Language: HCL
- Size: 291 KB
- Stars: 121
- Watchers: 7
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS Fargate Action
[![Travis CI](https://img.shields.io/travis/jessfraz/aws-fargate-action.svg?style=for-the-badge)](https://travis-ci.org/jessfraz/aws-fargate-action)
A GitHub action to deploy to AWS Fargate on push to the master branch.
**Table of Contents**
- [Usage](#usage)
- [Contributing](#contributing)
* [Running the tests](#running-the-tests)
* [Using the `Makefile`](#using-the-makefile)## Usage
```
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"
}
secrets = ["AWS_ACCESS_KEY_ID", "AWS_SECRET_ACCESS_KEY"]
}
```> **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...**
![demo1](demo1.png)
**On success, it will output the URL...**
![demo2](demo2.png)
**Go to that in your browser...**
![demo3](demo3.png)
## Contributing
### Running the tests
The tests use [shellcheck](https://github.com/koalaman/shellcheck). You don't
need to install anything. They run in a container.```console
$ make test
```### Using the `Makefile`
```console
$ 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.
```