Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 840 Bytes

ecs.md

File metadata and controls

18 lines (11 loc) · 840 Bytes

Deploy Containers with ECS (1 hour)

This exercise is building up on exercise 1.4 (Github Actions).

The goal of this exercise is to deploy your previously built Docker image to the public Docker hub: hub.docker.com

First, deploy an ECS cluster with Cloudformation from the following file:

The goal of this exercise is to extend your your Github Actions to:

  • Add the following file to your repository

  • Extend your Github flow with the following lines:

      aws cloudformation deploy --template-file ecs-task.yaml --stack-name ecs-task --parameter-overrides ImageName=docker.io/<your-docker-username>/ssc:sha-$(git rev-parse --short HEAD) --no-fail-on-empty-changeset