/aws-uncle

Useful uncle notifying unexpected servers in AWS

Primary LanguageJavaScriptMIT LicenseMIT

aws-uncle

Build Status Dependency Status DevDependency Status Version License

Useful uncle notifying unexpected servers in AWS.

Installation

git clone https://github.com/moqada/aws-uncle.git
cd aws-uncle
npm install

Configuration

Put Environment variables (HipChat token...)

cp .env.example .env

Put settings for filtering Unexpected servers

cp configs.example.json configs.json

Set following IAM policy for AWS Lambda.

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "logs:CreateLogGroup",
                "logs:CreateLogStream",
                "logs:PutLogEvents"
            ],
            "Resource": "arn:aws:logs:*:*:*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "ec2:describe*",
                "elasticbeanstalk:describe*",
                "elasticmapreduce:list*",
                "rds:describe*"
            ],
            "Resource": "*"
        }
    ]
}

Deploy

npm run deploy

Upload build/aws-uncle.zip to AWS Lambda.

TODO

  • Support EMR
  • Load configs from S3
  • Run standalone (CLI / crontab)
  • Add tests