-
Notifications
You must be signed in to change notification settings - Fork 10
/
aws_aliases_linux.sh
42 lines (42 loc) · 1.46 KB
/
aws_aliases_linux.sh
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
#Set paths
export AWS_CLI_DIR=$AWS_DIR/aws_build_linux/
export AWS_RELION=$AWS_DIR/relion/
export AWS_ROSETTA=$AWS_DIR/rosetta/
export PATH=$AWS_CLI_DIR/:$PATH
#export PATH=$AWS_RELION/:$PATH
export PATH=$AWS_ROSETTA/:$PATH
##List all instances for given user (based on tag)
alias awsls=$AWS_CLI_DIR/list_instances.py
##Kill specified instance
alias awskill=$AWS_CLI_DIR/kill_instance.py
##Alias launch command
alias awslaunch=$AWS_CLI_DIR/launch_AWS_instance.py
##Alias launch group of instances command
alias awslaunch_movieAlign=$AWS_CLI_DIR/launch_AWS_S3Movie_Alignment.py
#Create volume
alias aws_ebs_create=$AWS_CLI_DIR/create_volume.py
#Delete volume
alias aws_ebs_delete=$AWS_CLI_DIR/kill_volume.py
#Commands available
#Attach volume
alias aws_ebs_attach=$AWS_CLI_DIR/attach_volume.py
#Attach volume
alias aws_ebs_detach=$AWS_CLI_DIR/detach_volume.py
#List spot price
alias aws_spot_price_history=$AWS_CLI_DIR/list_spot_price.py
#Admin list
alias awsls_admin=$AWS_CLI_DIR/list_all.py
#Launch cluster
alias awslaunch_cluster=$AWS_CLI_DIR/launch_starcluster.py
#Relion QSUB command
export RELION_QSUB_TEMPLATE=$AWS_RELION/relion_qsub.sh
#Export directory to path
export PATH=$AWS_CLI_DIR/:$PATH
#Create snapshot
alias aws_snapshot_create=$AWS_CLI_DIR/create_snapshot.py
#Delete snapshot
alias aws_snapshot_delete=$AWS_CLI_DIR/kill_snapshot.py
#Data directory
export AWS_DATA_DIRECTORY=data
export PYTHONPATH=$AWS_CLI_DIR/../awslib:$PYTHONPATH
export PATH=$AWS_CLI_DIR/../cistem/:$PATH