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; | |
}; |