This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conf = { | |
"sqs-access-key": "", | |
"sqs-secret-key": "", | |
"sqs-queue-src": "", | |
"sqs-queue-dest": "", | |
"sqs-region": "ap-southeast-1", | |
} | |
import boto.sqs | |
conn = boto.sqs.connect_to_region( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.log('Loading event'); | |
//Import AWS-SDK | |
var AWS = require('aws-sdk'); | |
//Fetch the assigned cpu requirements for a task definition | |
var fetchRequiredCPU = function(taskDefinitionData) | |
{ | |
var cpu = taskDefinitionData.taskDefinition.containerDefinitions[0].cpu; | |
return cpu; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
instanceID=$1 | |
date=$(date +%Y%m%d) | |
downloadLog () { | |
local log=$1 | |
aws rds download-db-log-file-portion \ | |
--output text \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
certifi==2016.8.8 | |
elasticsearch-curator==3.5.1 | |
PyYAML==3.11 |