Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/foiovituh/slack-fish-cloud
Never forget to delete your daily AWS test resources 💬
https://github.com/foiovituh/slack-fish-cloud
auto-scaling-group aws bash cloud ebs-volumes ec2 script sh shell slack webhook
Last synced: 5 days ago
JSON representation
Never forget to delete your daily AWS test resources 💬
- Host: GitHub
- URL: https://github.com/foiovituh/slack-fish-cloud
- Owner: foiovituh
- License: mit
- Created: 2023-02-06T11:29:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T20:54:41.000Z (over 1 year ago)
- Last Synced: 2024-11-16T17:41:09.681Z (2 months ago)
- Topics: auto-scaling-group, aws, bash, cloud, ebs-volumes, ec2, script, sh, shell, slack, webhook
- Language: Shell
- Homepage:
- Size: 121 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# SlackFishCloud 🐠
Never forget to delete your AWS daily tests. SlackFishCloud sends messages to Slack channels alerting you to running AWS resources.## Requirements 🔗
OS:
- GNU/Linux or WSLWill be installed via `install.sh` if necessary:
- jq
- curl
- figlet
- AWS CLI v.2+ (requires configuration)## Install ⚙️
Steps:
1. `chmod +x install.sh sfc.sh`
2. Run `./install.sh` to set the default AWS CLI profile and a Slack Webhook URL for your workspaceFor more information about Slack Webhooks, see Sending messages using Incoming Webhooks
## Quick usage guide 📚
Get EC2 running resources (ASGs, instances, snapshots and volumes) in `us-east-1`:
```bash
./sfc.sh --regions us-east-1
```You can also pass other regions separated by spaces:
```bash
./sfc.sh --regions us-east-1 us-east-2 af-south-1 eu-west-3
```Examples in Slack:
![example_aws_ec2_asg_resources](https://user-images.githubusercontent.com/68431603/220462527-a7312139-2f48-4890-873c-f47da05fa834.jpg)
![example_aws_ec2_instance_resources](https://user-images.githubusercontent.com/68431603/220462534-136893ba-09cf-4f5b-b0ed-4a09666b3536.jpg)
![example_aws_ec2_snapshot_resources](https://user-images.githubusercontent.com/68431603/220462536-c87fbe30-262d-4660-9253-0405f3c96395.jpg)
![example_aws_ec2_volume_resources](https://user-images.githubusercontent.com/68431603/220462537-1f2094e7-cfb2-424a-a978-cf28ff604054.jpg)NOTE: only instances volumes and snapshots created on the same day of the script execution will be considered
## Open plans 📌
- New filters
- Set up schedulers with crontab
- Project more EC2 attributes in messages
- Implement a multi-cloud version (Azure + GCP)
- Add support in other AWS services/resources, e.g. S3 buckets and Lambda functions## Do you want help me? 👥
If you have any ideas or wish to contribute to the project, contact me on Twitter @vituohto or send me a pull request! :)## License 🏳️
```
MIT LicenseCopyright (c) 2023 Vitu Ohto
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```