Code Monkey home page Code Monkey logo

instance-watcher's Introduction

Instance-Watcher ๐Ÿ‘€

GHA - Deploy Instance Watcher

Introduction

Instance-Watcher will send you a daily recap notification with the list of the running instances on all AWS regions for a given AWS Account.

Currently, It covers the following AWS Services:

  • EC2 Instances
  • RDS Instances
  • SageMaker Notebook Instances
  • Glue Development Endpoints
  • Redshift Clusters

Useful for non-prod, lab/training, sandbox, or personal AWS accounts, to get a kindly reminder of what you've left running. ๐Ÿ’ธ

Notifications could be:

  • Slack Message
  • Microsoft Teams Message
  • Email

Features

  • Customizable schedule
  • Whitelisting capability
  • Month to Date (MTD) Spending
  • Forecasted Monthly Spend
  • Slack Notifications (Optional)
  • Microsoft Teams Notifications (Optional)
  • Emails Notifications (Optional)
  • Custom Tags

Sneak Peek

Email Notification

Mail Sample

Slack Notification

Slack Sample

Teams Notification

Teams Sample

Requirements

AWS SES: Before you can send an email using Amazon SES, you must verify the address or domain that you are sending the email from to prove that you own it. If you do not have production access yet, you also need to verify any email addresses that you send emails to except for email addresses provided by the Amazon SES mailbox simulator.

Deployment

Change default parameters in Makefile or use directly the command-line with parameters.

Nb: Recipients are space-delimited

Parameters

Parameter Mandatory Default Description
AWSRegion yes eu-west-1 AWS Region where the lambda is created
CronSchedule yes 0 18 * * ? * Scheduling of the Watcher
CustomTags no Your Custom AWS Tags to display on reports
EnableMail yes 1 Enable this for Email Notifications
EnableSlack yes 0 Enable this for Slack Notifications
EnableTeams yes 0 Enable this for Microsoft Teams Notifications
IsoTZ yes Europe/Paris ISO Format of the timezone
Project yes project Your project name
Recipients yes `` Recipients of email reports
RedFlagHour yes 12 Number of hours before marking uptime in RED into reporting email
Sender yes `` Sender of email reports
SlackWebHook no `` Your Slack webhook URL
TeamsWebHook no `` Your MS Teams webhook URL
WhitelistTag yes watcher Whitelist tag used to make exception on reported instances

Deployment steps

    $ make artifacts
    $ make package Project=<your_project_name>
    $ make verify-sender
    $ make deploy

Nb: Use emails in the command line is optional if you've already set up in the Makefile

Whitelisting

If you want to whitelist a specific instance to be hidden from the daily report, you will need to add the following tag to the instance.

Key Value
watcher off

nb: Tag Key is customizable in Makefile

Destroy

    $ make tear-down

instance-watcher's People

Contributors

aaronrea avatar z0ph avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.