Coder Social home page Coder Social logo

devops-challenge-ecs-ecr-vpc's Introduction

DevOps Challenge

The team is trying to deploy a simple "hello world" app on AWS ECS (elastic container service), but they're having some issues. Write a script (Makefile, bash, etc. - any language you choose) that will build the application image, push the image to an ECR repo, deploy the application, and check that the application is running correctly. The script should contain the steps below.

You'll be given credentials to our sandbox AWS account, which will be valid only during the interview.

  • API key id and secret
  • console username and password

Prerequisites

  1. Terraform - v0.13 or greater (direct install or via tfenv)
  2. AWS CLI
  3. Docker

Steps

  1. Deploy the ECR from terraform/bootstrap to have a place to push images to. You may want to add outputs here to reference the repo name in your script.
  2. Build the image in app. An engineer was trying to create a file "version.txt" that is exposed via an endpoint, it worked for them locally, when they created the file, but they are struggling to make it work when the Docker image is built.
  3. Push images to the new ECR repos. You'll need to do a docker login for this, which should also be part of the script.
  4. Deploy the ECS from terraform/app, debugging as necessary.
  5. Check that /version endpoint returns the current Git commit SHA

Stretch goal

The team would like to use scheduled Application AutoScaling to have higher capacity (8 instances of the task definition instead of 1) during peak hours (5:00 to 11:00 UTC). Add this ability via Terraform.

devops-challenge-ecs-ecr-vpc's People

Contributors

aws20221 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.