Skip to content

prakyathr/scheduled-ecs-task

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages

  • HCL 89.3%
  • Shell 5.9%
  • Python 3.1%
  • Dockerfile 1.7%