Skip to content

Carrick's Page O' Stuff

Carrick Rogers edited this page Jun 15, 2017 · 3 revisions

This all needs to be formatted into nice developer documents at some point

Searching for stuff stuff to our AWS Bucket

In irb

require 'aws-sdk'
bucket = Aws::S3::Bucket.new(name: BUCKETNAME )
paths = bucket.objects.select { |o| o.key =~ %r{^pending/02/.+\.mp4$} }.collect { |o| "s3://#{o.bucket_name}/#{o.key}" }

This gives you the path of everything in bucket/pending/02/ that is a mp4 and can be used for the split job, etc

Syncing Stuff up from elsewhere to a bucket

aws configure if needed
aws s3 sync /avalon-streams/01 s3://avalon-derivatives-cfx3wj9/pending/