Giter VIP home page Giter VIP logo

ethannguyendev / aws-resource-tagging-reminder Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 21 KB

Powered by AWS Lambda, SES, SNS, CloudTrail, CloudWatch, DynamoDB, Cloudformation. Automate email alerts to resource creators those who haven't done required tagging. This is to help platform team to charge infra cost back to application team BU. This is a common issue where orgs want to control security aspect of a few shared AWS accounts with deployment pipelines in places

License: MIT License

Python 94.67% HTML 5.33%

aws-resource-tagging-reminder's Introduction

aws-resource-tagging-reminder

Small app to keep tracks of untagged resources in dev acccounts

Automate email alerts to resource creators those who haven't done required tagging. This is to help platform team to charge infra cost back to application team BU. Thisi s a common issue where the org wants to control security aspect of a few shared AWS accounts with deployment pipelines in places Powered by AWS Lambda, SES, SNS, CloudTrail, CloudWatch, DynamoDB, Cloudformation.

By nature, for some AWS resources, tagging can only be done after resource provision. This is why we can't make decisions at the time of CloudTrail event triggered. Also, it's a better idea to keep track all of resources on a regular basic because tags can be updated anytime.

  1. In master account
    1. API Gateway + Lambda + SES setup with email template, expose 1 endpoint as centrailized setup for email alert
  2. In each dev/shared accounts
    1. Tracking Lambda: CloudTrail event to trigger Lambda upon resources provision (with custom event pattern), persist resource key, type with meta data in DynamoDB
    2. DynamoDB to store key details to lookup resource ARN & tagging later
    3. Reminder Lambda: loop thru all events & check for their existence & valid PC-code tag
      1. If resources no longer exist --> delete in DynamoDB
      2. If resources exist with no (proper) tagging --> group those resources by creator ARN (IAM & federated users) & send email reminder to them by invoking the API setup in master account

aws-resource-tagging-reminder's People

Contributors

ethannguyendev avatar

Stargazers

Jothibasu avatar Liliane D. Ng avatar 草莓味的kiko 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.