-
Notifications
You must be signed in to change notification settings - Fork 3
/
aws-1.py
43 lines (38 loc) · 805 Bytes
/
aws-1.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import arguably
@arguably.command
def ec2__start_instances(*instances):
"""
start instances
Args:
*instances: {instance}s to start
"""
for inst in instances:
print(f"Starting {inst}")
@arguably.command
def ec2__stop_instances(*instances):
"""
stop instances
Args:
*instances: {instance}s to stop
"""
for inst in instances:
print(f"Stopping {inst}")
@arguably.command
def s3__ls(path="/"):
"""
list objects
Args:
path: path to list under
"""
print(f"Listing objects under {path}")
@arguably.command
def s3__cp(src, dst):
"""
copy objects
Args:
src: source object
dst: destination path
"""
print(f"Copy {src} to {dst}")
if __name__ == "__main__":
arguably.run()