https://github.com/skahack/shipctl
Cluster operation commands for AWS ECS, simillar to kubectl
https://github.com/skahack/shipctl
aws docker ecs
Last synced: 6 months ago
JSON representation
Cluster operation commands for AWS ECS, simillar to kubectl
- Host: GitHub
- URL: https://github.com/skahack/shipctl
- Owner: skahack
- License: mit
- Created: 2017-03-14T11:16:14.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-11-30T04:45:33.000Z (over 7 years ago)
- Last Synced: 2024-06-21T14:43:33.709Z (about 2 years ago)
- Topics: aws, docker, ecs
- Language: Go
- Homepage:
- Size: 44.9 KB
- Stars: 12
- Watchers: 5
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# shipctl
shipctl is a cluster operation commands for AWS ECS, simillar to kubectl.
## Installation
Go to the [release page](https://github.com/SKAhack/shipctl/releases).
## Commands
### shipctl deploy
Deploy a specified task definition.
```
$ shipctl deploy [flags]
Flags:
--backend string Backend type of history manager (default "SSM")
--cluster string ECS Cluster Name
--image image base image of ECR image (default String: [])
--revision int revision of ECS task definition
--service-name string ECS Service Name
--slack-webhook-url string slack webhook URL
Example:
$ shipctl deploy --cluster foo --service-name bar --image "bar:latest"
$ shipctl deploy --cluster foo --service-name bar --image "bar:latest" --image "baz:latest" --revision 10
```
### shipctl rollback
Rollback previous task definition.
```
$ shipctl rollback [flags]
Flags:
--backend string Backend type of state manager (default "SSM")
--cluster string ECS Cluster Name
--service-name string ECS Service Name
--slack-webhook-url string slack webhook URL
Example:
$ shipctl rollback --cluster foo --service-name bar
```
### shipctl oneshot
Run a specified task on the cluster for one-time job, Inspired by [hako](https://github.com/eagletmt/hako).
```
$ shipctl oneshot [flags] COMMAND
Flags:
--cluster string ECS cluster name
--service-name string ECS service name. This flag is mutually exclusive of --taskdef-name
--taskdef-name string ECS task definition name. This flag is mutually exclusive of --service-name
--revision int revision of ECS task definition
Example:
$ shipctl oneshot --cluster foo --service-name bar echo hello
$ shipctl oneshot --cluster foo --taskdef-name bar --revision 10 echo hello
```
## License
MIT