https://github.com/abiydv/bash
Usual bash scripts and examples
https://github.com/abiydv/bash
aws aws-cli aws-cli-utilities aws-datapipeline aws-ec2 aws-iam aws-lambda bash bash-script
Last synced: 3 months ago
JSON representation
Usual bash scripts and examples
- Host: GitHub
- URL: https://github.com/abiydv/bash
- Owner: abiydv
- License: apache-2.0
- Created: 2019-01-20T14:49:52.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-05T10:54:25.000Z (over 6 years ago)
- Last Synced: 2025-02-28T11:04:18.161Z (7 months ago)
- Topics: aws, aws-cli, aws-cli-utilities, aws-datapipeline, aws-ec2, aws-iam, aws-lambda, bash, bash-script
- Language: Shell
- Size: 205 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bash Scripts
[](https://travis-ci.org/abiydv/bash)
[](https://www.codefactor.io/repository/github/abiydv/bash)
Bash scripts for some mundane tasks on AWS
### [AWS Datapipeline monitor](./aws-datapipeline-monitor.sh)
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.### [AWS EBS daily monitor](./aws-ebs-daily-monitor.sh)
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.### [AWS extract IAM policies](./aws-extract-iam-policies.sh)
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### [AWS Lambda monitor](./aws-lambda-monitor.sh)
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.### [AWS long running EC2](./aws-long-running-ec2.sh)
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.### [AWS IAM User add](./aws-useradd.sh)
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.### [AWS IAM User audit](./aws-useraudit.sh)
Audit your IAM userlist and remove long idle users. Crucial to keep your account acces secure.