docs/quick-start.md in ufo-4.4.2 vs docs/quick-start.md in ufo-4.4.3
- old
+ new
@@ -12,19 +12,21 @@
In a hurry? No sweat! Here's a quick start to using ufo that takes only a few minutes. For this example, we will use a Sinatra app from [tongueroo/demo-ufo](https://github.com/tongueroo/demo-ufo). The `ufo init` command sets up the ufo directory structure in your project. The `ufo ship` command deploys your code to an AWS ECS service. The `ufo ps` and `ufo scale` command shows you how to verify and scale additional containers.
git clone https://github.com/tongueroo/demo-ufo demo
cd demo
AWS_ACCOUNT=$(aws sts get-caller-identity | jq -r '.Account')
- ufo init --image tongueroo/demo-ufo --launch-type fargate --execution-role-arn arn:aws:iam::$AWS_ACCOUNT:role/ecsTaskExecutionRole
+ aws ecr create-repository --repository-name demo/sinatra
+ ECR_REPO=$(aws ecr describe-repositories --repository-name demo/sinatra | jq -r '.repositories[].repositoryUri')
+ ufo init --image $ECR_REPO --launch-type fargate --execution-role-arn arn:aws:iam::$AWS_ACCOUNT:role/ecsTaskExecutionRole
ufo current --service demo-web
ufo ship
ufo ps
ufo scale 2
This quickstart assumes:
-* You have push access to the repo. Refer to the Notes "Repo Push Access" section below for more info.
+* You have push access to the repo. Refer to the Notes "Repo Push Access" section below for more info.
* The `ecsTaskExecutionRole` needs to exist on your AWS account. If you do not have an ecsTaskExecutionRole yet, create one by following: [Create ecsTaskExecutionRole with AWS CLI]({% link _docs/aws-ecs-task-execution-role.md %}).
## What Happened
The `ufo ship demo-web` command does the following:
@@ -36,10 +38,10 @@
You should see output similar to this.
$ ufo ship
Building docker image with:
- docker build -t tongueroo/demo-ufo:ufo-2018-06-29T22-54-07-20b3a10 -f Dockerfile .
+ docker build -t 112233445566.dkr.ecr.us-west-2.amazonaws.com/demo/sinatra:ufo-2018-06-29T22-54-07-20b3a10 -f Dockerfile .
...
10:58:38PM CREATE_COMPLETE AWS::ECS::Service Ecs
10:58:40PM CREATE_COMPLETE AWS::CloudFormation::Stack development-demo-web
Stack success status: CREATE_COMPLETE
Time took for stack deployment: 4m 24s.
\ No newline at end of file