Skip to content

Moves data to and from AWS Batch system and monitors logs

License

Notifications You must be signed in to change notification settings

crosenth/aws_batch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Batch Helper

A tool for uploading data to and from a local file system to an AWS S3 Bucket and into an AWS Batch container for processing. All container text output is monitored through the AWS Logging system and reported back to the user.

Inspired by the submit-job.py script by kiukA9

dependencies

The awscli must also be available within the batch container.

installation

% pip install aws_batch

or

% pip install git+https://github.com/crosenth/aws_batch

Usage

Running a simple command and sending the results to a script with a little verbosity -v:

aws_batch -v --job-queue some-queue --bucket s3://my_bucket/ --command "echo hello world > hello_world.txt" --downloads hello_world.txt some_job_definition
Found credentials in shared credentials file: ~/.aws/credentials
mkdir -p tmp; cd tmp; echo hello world > hello_world.txt; /home/ec2-user/miniconda/bin/aws s3 cp --only-show-errors hello_world.txt s3://my_bucket/hello_world.txt
SUBMITTED
RUNNABLE
STARTING
SUCCEEDED
download: s3://my_bucket/hello_world.txt to hello_world.txt

About

Moves data to and from AWS Batch system and monitors logs

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages