Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 060cb2a

Browse files
AWS Management Scripts
1 parent d7940af commit 060cb2a

File tree

2 files changed

+40
-1
lines changed
  • AWS Management Scripts/AWS Automation Script for AWS endorsement management

2 files changed

+40
-1
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## Aws Script for AWS Management
2+
3+
This python script can be used to manage a AWS endorsement.
4+
5+
this provides features like :
6+
7+
EC2 :
8+
9+
1. Create your own Key based SnapShots
10+
2. Delete SnapShots
11+
3. Delete/ Terminate any EC2 instance which does not have a user/ any specific tag
12+
4. stop any useless Running Ec2 instance
13+
14+
RDS :
15+
16+
1. delete RDS Instance
17+
2. Delete RDS Cluster
18+
3. Stop any useless Running RDS Cluster/Instance
19+
4. Delete useless Snapshots
20+
5. Delete any RDS Instance or Cluster which does not have a specific tag with it
21+
6. Delete any RDS Snapshot that is older then 2 days
22+
23+
these Scripts can directly be used with AWS lambda function for Automation purposes as well
24+
25+
## Installation
26+
27+
First of all install [python]("https://www.python.org/downloads/") on your system.
28+
```
29+
pip install boto3
30+
```
31+
32+
### Made with ❤️ by Shantam Sultania
33+
34+
You can find me at:-
35+
[Linkedin](https://www.linkedin.com/in/shantam-sultania-737084175/) or [Github](https://github.com/shantamsultania) .
36+
37+
Happy coding ❤️ .
38+
39+

‎AWS Management Scripts/AWS Automation Script for AWS endorsement management/ec2.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def delete_snapshots(self, older_days=2):
4747
print(e)
4848
return delete_snapshots_num
4949

50-
def get_nimesa_created_snapshots(self):
50+
def get_user_created_snapshots(self):
5151
snapshots = self.ec2.describe_snapshots(
5252
Filters=[{
5353
'Name': 'owner-id', 'Values': ['your owner id'],

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /