wacul / aws-ecs

Wercker step and github action for AWS ECS Deploy
6 stars 2 forks source link

`(dry-run) ` prefix if `--dry-run` option is added #48

Closed podhmo closed 3 years ago

podhmo commented 3 years ago

for example

$ make dry-run-deploy EXTRA_ARGS="--deploy-service-group service-proxy"
cd ~/ghq/github.com/wacul/aws-ecs ~/ghq/github.com/wacul/aws-ecs/venv/bin/python && ~/ghq/github.com/wacul/aws-ecs/venv/bin/python main.py service --dry-run --region=us-east-1 --services-yaml /Users/me/go/src/github.com/my/app/operation/deploy/../../infra/services.yml --environment-yaml /Users/me/go/src/github.com/my/app/operation/deploy/../../infra/conf/develop.yml --service-update-only --deploy-service-group service-proxy
INFO: dry run printer is activated globally
INFO: use_fake is true, so use fake readonly client
(dry-run) Step: Check ECS Template

* (dry-run) Template check environment `develop` done.

(dry-run) Step: Deploy ECS Service

* (dry-run) Deploy Service 'develop-yyy-service' succeeded.
   - 1 task running
   - 1 task desired

* (dry-run) Deploy Service 'develop-xxx-service' succeeded.
   - 1 task running
   - 1 task desired

* (dry-run) Deploy Service 'develop-zzz-service' succeeded.
   - 1 task running
   - 1 task desired

(dry-run) Wait for Service Status 'Stable'

* (dry-run) service 'develop-yyy-service' (1 / 1) update completed.

* (dry-run) service 'develop-xxx-service' (1 / 1) update completed.

* (dry-run) service 'develop-zzz-service' (1 / 1) update completed.