Skip to content

Never forget to delete your daily AWS test resources ๐Ÿ’ฌ

License

Notifications You must be signed in to change notification settings

foiovituh/slack-fish-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

33 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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 WSL

Will 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 workspace

For 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:

./sfc.sh --regions us-east-1

You can also pass other regions separated by spaces:

./sfc.sh --regions us-east-1 us-east-2 af-south-1 eu-west-3

Examples in Slack:

example_aws_ec2_asg_resources example_aws_ec2_instance_resources example_aws_ec2_snapshot_resources example_aws_ec2_volume_resources

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 License

Copyright (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.