All Projects → zoph-io → instance-watcher

zoph-io / instance-watcher

Licence: GPL-3.0 License
Get notified for Instances mistakenly left running across all AWS regions for specific AWS Account

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to instance-watcher

Awesome Aws
A curated list of awesome Amazon Web Services (AWS) libraries, open source repos, guides, blogs, and other resources. Featuring the Fiery Meter of AWSome.
Stars: ✭ 9,895 (+10894.44%)
Mutual labels:  lambda, ec2, redshift, rds
Aws Cli Cheatsheet
☁️ AWS CLI + JQ = Make life easier
Stars: ✭ 94 (+4.44%)
Mutual labels:  lambda, ec2, rds
go-localstack
Go Wrapper for using localstack
Stars: ✭ 56 (-37.78%)
Mutual labels:  lambda, ec2, redshift
Awstaghelper
AWS bulk tagging tool
Stars: ✭ 98 (+8.89%)
Mutual labels:  lambda, ec2, rds
Komiser
☁️ Cloud Environment Inspector 👮🔒 💰
Stars: ✭ 2,684 (+2882.22%)
Mutual labels:  lambda, ec2, rds
Ec2instances.info
Amazon EC2 instance comparison site
Stars: ✭ 3,619 (+3921.11%)
Mutual labels:  ec2, rds, finops
Hello-AWS-Data-Services
Sample code for AWS data service and ML courses on LinkedIn Learning
Stars: ✭ 144 (+60%)
Mutual labels:  redshift, rds, sagemaker
Aws Data Wrangler
Pandas on AWS - Easy integration with Athena, Glue, Redshift, Timestream, QuickSight, Chime, CloudWatchLogs, DynamoDB, EMR, SecretManager, PostgreSQL, MySQL, SQLServer and S3 (Parquet, CSV, JSON and EXCEL).
Stars: ✭ 2,385 (+2550%)
Mutual labels:  lambda, redshift
Terraform Aws Labs
Terraform template for AWS provider ☁️
Stars: ✭ 146 (+62.22%)
Mutual labels:  lambda, ec2
herman
Herman is a tool to simplify deployment of AWS Services using ECS and Lambda, and the provisioning of various AWS services.
Stars: ✭ 33 (-63.33%)
Mutual labels:  lambda, rds
datajob
Build and deploy a serverless data pipeline on AWS with no effort.
Stars: ✭ 101 (+12.22%)
Mutual labels:  glue, sagemaker
aws-tag-sched-ops
Retired, please see https://github.com/sqlxpert/lights-off-aws
Stars: ✭ 24 (-73.33%)
Mutual labels:  ec2, rds
aws-map
Make a network graph of an AWS region
Stars: ✭ 79 (-12.22%)
Mutual labels:  ec2, rds
Content Lambda Boto3
Automating AWS with Lambda, Python, and Boto3
Stars: ✭ 91 (+1.11%)
Mutual labels:  lambda, ec2
tech1-temple-aws
AWS Proofs of Concepts repository. No Longer Supported
Stars: ✭ 32 (-64.44%)
Mutual labels:  lambda, ec2
terraform-aws-ec2-instance
Terraform module for provisioning a general purpose EC2 host
Stars: ✭ 123 (+36.67%)
Mutual labels:  ec2, instance
aws-backup-lambda
A utility AWS lambda function to manage EBS and RDS snapshot backups.
Stars: ✭ 60 (-33.33%)
Mutual labels:  lambda, rds
ebsautotagger
AWS Lambda function to tag EBS volumes created by autoscaling
Stars: ✭ 18 (-80%)
Mutual labels:  lambda, ec2
Aws Automation
AWS automation scripts and lambda functions
Stars: ✭ 81 (-10%)
Mutual labels:  lambda, ec2
aws-is-how
Know How Guide and Hands on Guide for AWS
Stars: ✭ 27 (-70%)
Mutual labels:  lambda, sagemaker

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
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].