Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kanmu/demitas2
Wrapper for ecspresso that creates task definitions at run time.
https://github.com/kanmu/demitas2
aws ecs ecspresso
Last synced: 11 days ago
JSON representation
Wrapper for ecspresso that creates task definitions at run time.
- Host: GitHub
- URL: https://github.com/kanmu/demitas2
- Owner: kanmu
- License: mit
- Created: 2022-05-22T14:26:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-17T17:29:56.000Z (5 months ago)
- Last Synced: 2024-06-21T08:29:37.282Z (5 months ago)
- Topics: aws, ecs, ecspresso
- Language: Go
- Homepage:
- Size: 182 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# demitas2
[![build](https://github.com/kanmu/demitas2/actions/workflows/build.yml/badge.svg)](https://github.com/kanmu/demitas2/actions/workflows/build.yml)
Wrapper for ecspresso that creates task definitions at run time.
## Requirement
* [ecspresso](https://github.com/kayac/ecspresso)
* [AWS CLI](https://aws.amazon.com/cli/)
* [Session Manager plugin](https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-working-with-install-plugin.html)## Installation
```
brew install kanmu/tools/demitas2
```## Usage
```
Usage: dmts --ecspresso-cmd="ecspresso" --conf-dir="~/.demitas" --config=ecspresso.yml,ecspresso.json,ecspresso.jsonnet,... --container-def="ecs-container-def.jsonnet"Flags:
-h, --help Show context-sensitive help.
--version
--ecspresso-cmd="ecspresso"
ecspresso command path ($ECSPRESSO_CMD).
-X, --ecspresso-opts=STRING Options passed to ecspresso
($ECSPRESSO_OPTS).
--dry-run Run ecspresso with dry-run.
-P, --aws-profile=STRING AWS profile name ($AWS_PROFILE)
-d, --conf-dir="~/.demitas" Config file base dir ($DMTS_CONF_DIR).
--config=ecspresso.yml,ecspresso.json,ecspresso.jsonnet,...
ecspresso config file name ($ECSPRESSO_CONF).
--container-def="ecs-container-def.jsonnet"
ECS container definition file name
($DMTS_CONT_DEF).
-e, --config-overrides=STRING JSON/YAML string that overrides ecspresso
config.
-s, --service-overrides=STRING
JSON/YAML string that overrides ECS service
definition.
-t, --task-overrides=STRING JSON/YAML string that overrides ECS task
definition.
-c, --container-overrides=STRING
JSON/YAML string that overrides ECS container
definition.
--cluster=STRING ECS cluster name ($DMTS_CLUSTER).
--overrides-file=".demitas.jsonnet"
demitas overrides config file name
($DMTS_OVERRIDES_FILE).Commands:
run --ecspresso-cmd="ecspresso" --conf-dir="~/.demitas" --config=ecspresso.yml,ecspresso.json,ecspresso.jsonnet,... --container-def="ecs-container-def.jsonnet"
Run ECS task.exec --ecspresso-cmd="ecspresso" --conf-dir="~/.demitas" --config=ecspresso.yml,ecspresso.json,ecspresso.jsonnet,... --container-def="ecs-container-def.jsonnet" --command="bash"
Run ECS task and execute a command on a container.port-forward --ecspresso-cmd="ecspresso" --conf-dir="~/.demitas" --config=ecspresso.yml,ecspresso.json,ecspresso.jsonnet,... --container-def="ecs-container-def.jsonnet" --remote-host=STRING --remote-port=UINT --local-port=UINT
Forward a local port to a container.profiles --ecspresso-cmd="ecspresso" --conf-dir="~/.demitas" --config=ecspresso.yml,ecspresso.json,ecspresso.jsonnet,... --container-def="ecs-container-def.jsonnet"
List profiles.install-completions --ecspresso-cmd="ecspresso" --conf-dir="~/.demitas" --config=ecspresso.yml,ecspresso.json,ecspresso.jsonnet,... --container-def="ecs-container-def.jsonnet"
Install shell completionsRun "dmts --help" for more information on a command.
```## Install shell completions
```
dmts install-completions >> ~/.zshrc
```