This is a cli tool to generate AWS Fargate api infrastructure which are provisioned by terraform.
NAME:
ecs-gen
USAGE:
ecs-gen [global options] command [command options] [arguments...]
AUTHOR:
keng000
COMMANDS:
init Define basic infrastructure. e.g. VPC, Subnet, SG, TG...
api Generate target groups and ecr repos with auto scale setting
deploy Generate region derectory for module deploy
help, h Shows a list of commands or help for one command
GLOBAL OPTIONS:
--help, -h show help
--version, -v print the version
NAME:
ecs-gen init - Define basic infrastructure. e.g. VPC, Subnet, SG, TG...
USAGE:
ecs-gen init [PROJECT]
NAME:
ecs-gen api - Generate target groups and ecr repos with auto scale setting
USAGE:
ecs-gen api [APIs...]
NAME:
ecs-gen deploy - Generate region derectory for module deploy
USAGE:
ecs-gen deploy [command options] [REGIONs...]
OPTIONS:
--list, -l List available region list
To install, use go get
:
$ go get -d github.com/keng000/ecs-gen/
$ cd $GOPATH/src/github.com/keng000/ecs-gen/
$ go install
- Fork (https://github.com/keng000/ecs-gen//fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
go test ./...
command and confirm that it passes - Run
gofmt -s
- Create a new Pull Request
- go-assets-builder
- go-assets
when you update the tpml file, then you need to append into assets. run below.
$ go generate ./...