Skip to content

This lambda function checks if your EC2 instances all have a specific tag in near real-time.

License

Notifications You must be signed in to change notification settings

widdix/aws-tag-watch

Repository files navigation

AWS tag watch

You can track every change made to your AWS account with CloudTrail. Did you know that you can also monitor your AWS account in near real time with custom rules specific for your use case? This post will explain you the details of the implementation that follows.

![AWS tag watch](./AWS tag watch.png?raw=true "AWS tag watch")

Unfortunately you can not enforce a tag schema on AWS. But tags are very important e.g. for cost allocation. This lambda function checks if your EC2 instances all have a specific tag (defined in config.json) in near real-time. CloudTrail is used to report EC2 CreateTags, DeleteTags and RunInstances events. The lambda function can be deployed with CloudFormation.

Install

  1. Create a SNS topic and subscribe to the topic via email (aws-tag-watch will send alerts to this topic)
  2. download the code https://github.com/widdix/aws-tag-watch/archive/master.zip
  3. unzip
  4. run npm install inside to install Node.js dependencies
  5. edit config.json
  6. execute ./bundle.sh in your terminal
  7. upload aws-tag-watch.zip to S3
  8. create a CloudFormation stack based on template.json

done.

About

This lambda function checks if your EC2 instances all have a specific tag in near real-time.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published