Giter Site home page Giter Site logo

vthub / scheduled-ecs-task Goto Github PK

View Code? Open in Web Editor NEW
20.0 3.0 1.0 4 KB

Run recurring long running task on AWS ECS

Home Page: https://medium.com/@vasilii.trofimchuk/running-ecs-fargate-tasks-on-a-schedule-fd1ca428e669

Dockerfile 1.74% Python 3.12% HCL 89.22% Shell 5.92%
terraform aws ecs ecr ecs-task docker

scheduled-ecs-task's Introduction

Running ECS task on a schedule

File description

  • infrastructure/ecs.tf - ECS cluster and task configuration
  • infrastrcuture/ecr.tf - image repository configuration

Shortcuts and scripts

  1. Run docker locally:

    $ ./run.sh
  2. Publish docker to your ECR repository:

    $ echo "YOUR_ECR_REPOSITORY_URI" > repo
    $ ./push.sh
  3. Apply terraform changes to your environment:

    $ cd infrastructure/
    $ terraform apply   

AWS Access Configuration

For terraform and docker push scripts to find your AWS configuration, place the configuration in the ~/.aws/scheduled-ecs-credentials file:

[default]
aws_access_key_id=YOUR_ACCESS_KEY
aws_secret_access_key=YOUR_SECRET_ACCESS_KEY
region=us-west-2

scheduled-ecs-task's People

Contributors

vtsygn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

prakyathr

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.