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 Original file line number Diff line number Diff line change
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
+
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def delete_snapshots(self, older_days=2):
47
47
print (e )
48
48
return delete_snapshots_num
49
49
50
- def get_nimesa_created_snapshots (self ):
50
+ def get_user_created_snapshots (self ):
51
51
snapshots = self .ec2 .describe_snapshots (
52
52
Filters = [{
53
53
'Name' : 'owner-id' , 'Values' : ['your owner id' ],
You can’t perform that action at this time.
0 commit comments