GithubHelp home page GithubHelp logo

abiydv / bash Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 210 KB

Usual bash scripts and examples

License: Apache License 2.0

Shell 100.00%
aws aws-ec2 aws-cli aws-cli-utilities aws-lambda aws-datapipeline aws-iam bash-script bash

bash's Introduction

Bash Scripts

Build Status CodeFactor

bash-shell

Bash scripts for some mundane tasks on AWS

This script monitors the Data pipelines in your AWS account and emails you a report if there are no executions for over 2 months. AWS charges for each data pipeline in your account, so it is prudent to clear up old ones not being used anymore. It also uploads this report to S3.

This script monitors the EBS volumes in your AWS account and emails you a report with details of unattached volumes along with the user details of all the volumes (extracted from tags applied to the volume). Unattached EBS volumes also cost you, so it's better to clear up volumes not in use. It also uploads this report to S3.

This script extracts the IAM policies to your local. Helpful if you want to commit the policies to a version control system. It can even be automated by scheduling it to run on a daily/weekly basis. AWS versions your policies but only 5 last versions are available. So it may help to have more versions available outside AWS

This script monitors the lambda executions in your AWS account and emails you details of functions which are sitting idle. Since creating Lambda functions is so easy, it often slips attention and the list keeps growing. This script can cleanup your account of all the idle functions. It also uploads this report to s3.

This script notifies users who have EC2 instances running longer than a week in your AWS account. People often create them and "forget". It nudges them lightly to stop them if not being used anymore. It depends on a list of users in your account mapped with their emails - saved on s3.

Automate user addition and inventory them. It also sends them emails with username/passowrd and what to do next. We like them to setup their MFA etc. and also send along a doc explaining the steps.

Audit your IAM userlist and remove long idle users. Crucial to keep your account acces secure.

bash's People

Contributors

abiydv avatar

Stargazers

 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.