DEV Community

Cover image for Demo cats and dogs
jicoing
jicoing

Posted on • Updated on

Demo cats and dogs

About

We will manage Docker images of cats and dogs in Amazon ECR.
Create Amazon ECS cluster, task definitions, and services.Choose right launch type either EC2 or Fargate for each service. Deploy simple containerized application cats and dogs path-routed through ALB. Monitor ECS cluster and services in Amazon CloudWatch Container Insights. Centralize container logs using AWS FireLens and Amazon CloudWatch Logs. Scale ECS services and cluster automatically.
Read more:https://ecs-cats-dogs.workshop.aws/en/01_intro.html

IAM role created - Administrator access.

Alt Text

Cloudformation stack created.

Region: ap-northeast-2
Alt Text

What we will do.

Alt Text

Create Amazon ECR cats, dogs repositories.
build and tag cats, dogs docker images from AWS Cloud9 IDE.
Push the images to Amazon ECR.

AmazonEC2ContainerRegistryFullAccess policy attached to ecs-demogo

Alt Text

Cloud9 instance attached ecs-demogo IAM role.

Alt Text

AWS managed credentials turned off in Cloud9.

Alt Text

GetCallerIdentity command ran.

Alt Text

Updated and installed CLI tools

Alt Text

Current region set as default.

Alt Text

Cats, Dogs repository created in ECR.

Alt Text

cats image built with Dockerfile.

Alt Text

dogs image built with Dockerfile.

Alt Text

cats image pushed to ECR repository.

Alt Text

dogs image pushed to ECR repository.

Alt Text

Cats image in ECR.

Alt Text

Dogs image in ECR.

Alt Text

DEMOGO-ECS cluster created.

Alt Text

IAM policy attached to ecsInstancerole

Alt Text

Task definition created.

Alt Text

catsdef,dogsdef created.

Alt Text

ALB created

Alt Text

ECS services created.

Alt Text

Cats services created.

Alt Text

Dogs service created.

Alt Text

Failed to load application

Alt Text

Failure reason

Task did not run properly.
Alt Text

Top comments (0)