Run in Pieces
The ufo ship
command goes through a few stages:
- building the docker image
- registering the task defiintions
- updating the ECS service.
The CLI exposes many of these steps as separate commands. Here is now you would be able to run each of the steps in pieces.
Build the docker image first.
ufo docker build
ufo docker push # pushes last built image to a registry
Build the task definitions.
ufo tasks build # generates task definition json files to .ufo/output
ufo tasks register # registers all genreated task definitions .ufo/output to ECS
Update the service with the task definitions in .ufo/output
untouched.
ufo deploy demo-web
Note if you use the ufo deploy
you should ensure that you have already pushed the docker image to your docker registry. Or else the task will not be able to spin up because the docker image does not exist. This is one of the reasons it is recommended that you use ufo ship
.
Pro tip: Use the <- and -> arrow keys to move back and forward.
Edit this page
See a typo or an error? You can improve this page. This website is available on GitHub and contributions are encouraged and welcomed. We love pull requests from you!
- Suggest an edit to this page (here's the contributing guide).
- Open an issue about this page to report a problem.