Skip to content

nvenk67/aws-automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Automation

Lambda functions and Scripts Documentation
Export CloudWatch logs to S3
CloudWatch logs group retention
EC2 automated Snapshots
DynamoDB Table Backup
Lambda Function Tuning
Update Lambda Functions Timeout
Update Lambda Functions Memory
Update Lambda Functions Run Time
Update Lambda Functions Environment Variable
Set Invocations Alarm for Lambda Functions
Enable all ApiGateway APIs logging to CLoudWatch
Stop running EC2 instances
Redshift DC to DS cluster migration

Brightcove videos retranscode

First we fetch all videos data and store it as a json file in local. Here we fetch 20 videos and retrancode them at a time.

Step 1: Fetch all videos data and store in local

Execute the following command in terminal to store videos data in local :

$ CLIENT_SECRET=<CLIENT_SECRET> CLIENT_ID=<CLIENT_ID> BRIGHTCOVE_ACCOUNT_ID=<BRIGHTCOVE_ACCOUNT_ID> FUNCTION_NAME=storeBrightcoveVideoDataInJson FILE_DIR_PATH=<FILE_DIR_PATH> node brighcove_videos_bulk_retranscode.js

Step 2: Retranscode videos

Execute the following command in terminal to retranscode videos :

$ CLIENT_SECRET=<CLIENT_SECRET> CLIENT_ID=<CLIENT_ID> BRIGHTCOVE_ACCOUNT_ID=<BRIGHTCOVE_ACCOUNT_ID> INGETION_PROFILE=<INGETION_PROFILE> BRIGHTCOVE_VIDEO_MIN_VIEWS=<BRIGHTCOVE_VIDEO_MIN_VIEWS> FUNCTION_NAME=retranscodeVideos FILE_DIR_PATH=<FILE_DIR_PATH> sh brightcove_all_videos_retranscode.sh

About

AWS automation scripts and lambda functions

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 98.9%
  • Shell 1.1%