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 | |
# On Amazon Linux | |
mkdir -p /tmp/rsyslog-fix && cd /tmp/rsyslog-fix | |
git clone https://github.com/edenhill/librdkafka.git | |
# Install Libredkafka | |
cd librdkafka && . configure | |
make | |
sudo make install |
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
#!/usr/local/bin/python3 | |
import argparse | |
import json | |
import requests | |
""" | |
IPRangeFinder will fetch the ip-ranges file from AWS | |
and parse it to find the public IP addresses registered | |
to a region. This is useful when searching for the range | |
of public IP addresses that can be allocated to your AWS |