forked from bash-my-aws/bash-my-aws
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
150 lines (148 loc) · 8.91 KB
/
aliases
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
# GENERATED ALIASES FOR BASH-MY-AWS
alias __bma_error='~/.bash-my-aws/bin/bma __bma_error'
alias __bma_read_filters='~/.bash-my-aws/bin/bma __bma_read_filters'
alias __bma_read_inputs='~/.bash-my-aws/bin/bma __bma_read_inputs'
alias __bma_read_stdin='~/.bash-my-aws/bin/bma __bma_read_stdin'
alias __bma_usage='~/.bash-my-aws/bin/bma __bma_usage'
alias _bma_derive_params_from_stack_and_template='~/.bash-my-aws/bin/bma _bma_derive_params_from_stack_and_template'
alias _bma_derive_params_from_template='~/.bash-my-aws/bin/bma _bma_derive_params_from_template'
alias _bma_derive_stack_from_params='~/.bash-my-aws/bin/bma _bma_derive_stack_from_params'
alias _bma_derive_stack_from_template='~/.bash-my-aws/bin/bma _bma_derive_stack_from_template'
alias _bma_derive_template_from_params='~/.bash-my-aws/bin/bma _bma_derive_template_from_params'
alias _bma_derive_template_from_stack='~/.bash-my-aws/bin/bma _bma_derive_template_from_stack'
alias _bma_stack_args='~/.bash-my-aws/bin/bma _bma_stack_args'
alias _bma_stack_capabilities='~/.bash-my-aws/bin/bma _bma_stack_capabilities'
alias _bma_stack_diff_params='~/.bash-my-aws/bin/bma _bma_stack_diff_params'
alias _bma_stack_diff_template='~/.bash-my-aws/bin/bma _bma_stack_diff_template'
alias _bma_stack_name_arg='~/.bash-my-aws/bin/bma _bma_stack_name_arg'
alias _bma_stack_params_arg='~/.bash-my-aws/bin/bma _bma_stack_params_arg'
alias _bma_stack_template_arg='~/.bash-my-aws/bin/bma _bma_stack_template_arg'
alias asg-capacity='~/.bash-my-aws/bin/bma asg-capacity'
alias asg-desired-size-set='~/.bash-my-aws/bin/bma asg-desired-size-set'
alias asg-instances='~/.bash-my-aws/bin/bma asg-instances'
alias asg-launch-configuration='~/.bash-my-aws/bin/bma asg-launch-configuration'
alias asg-max-size-set='~/.bash-my-aws/bin/bma asg-max-size-set'
alias asg-min-size-set='~/.bash-my-aws/bin/bma asg-min-size-set'
alias asg-processes_suspended='~/.bash-my-aws/bin/bma asg-processes_suspended'
alias asg-resume='~/.bash-my-aws/bin/bma asg-resume'
alias asg-scaling-activities='~/.bash-my-aws/bin/bma asg-scaling-activities'
alias asg-stack='~/.bash-my-aws/bin/bma asg-stack'
alias asg-suspend='~/.bash-my-aws/bin/bma asg-suspend'
alias asgs='~/.bash-my-aws/bin/bma asgs'
alias aws-account-alias='~/.bash-my-aws/bin/bma aws-account-alias'
alias aws-account-cost-explorer='~/.bash-my-aws/bin/bma aws-account-cost-explorer'
alias aws-account-cost-recommendations='~/.bash-my-aws/bin/bma aws-account-cost-recommendations'
alias aws-account-each='~/.bash-my-aws/bin/bma aws-account-each'
alias aws-account-id='~/.bash-my-aws/bin/bma aws-account-id'
alias aws-panopticon='~/.bash-my-aws/bin/bma aws-panopticon'
alias bucket-acls='~/.bash-my-aws/bin/bma bucket-acls'
alias bucket-remove='~/.bash-my-aws/bin/bma bucket-remove'
alias bucket-remove-force='~/.bash-my-aws/bin/bma bucket-remove-force'
alias buckets='~/.bash-my-aws/bin/bma buckets'
alias cert-delete='~/.bash-my-aws/bin/bma cert-delete'
alias cert-users='~/.bash-my-aws/bin/bma cert-users'
alias certs='~/.bash-my-aws/bin/bma certs'
alias certs-arn='~/.bash-my-aws/bin/bma certs-arn'
alias cloudtrail-status='~/.bash-my-aws/bin/bma cloudtrail-status'
alias cloudtrails='~/.bash-my-aws/bin/bma cloudtrails'
alias columnise='~/.bash-my-aws/bin/bma columnise'
alias ecr-repositories='~/.bash-my-aws/bin/bma ecr-repositories'
alias ecr-repository-images='~/.bash-my-aws/bin/bma ecr-repository-images'
alias elb-dnsname='~/.bash-my-aws/bin/bma elb-dnsname'
alias elb-instances='~/.bash-my-aws/bin/bma elb-instances'
alias elb-stack='~/.bash-my-aws/bin/bma elb-stack'
alias elbs='~/.bash-my-aws/bin/bma elbs'
alias iam-role-principal='~/.bash-my-aws/bin/bma iam-role-principal'
alias iam-roles='~/.bash-my-aws/bin/bma iam-roles'
alias image-deregister='~/.bash-my-aws/bin/bma image-deregister'
alias images='~/.bash-my-aws/bin/bma images'
alias instance-asg='~/.bash-my-aws/bin/bma instance-asg'
alias instance-az='~/.bash-my-aws/bin/bma instance-az'
alias instance-console='~/.bash-my-aws/bin/bma instance-console'
alias instance-dns='~/.bash-my-aws/bin/bma instance-dns'
alias instance-iam-profile='~/.bash-my-aws/bin/bma instance-iam-profile'
alias instance-ip='~/.bash-my-aws/bin/bma instance-ip'
alias instance-ssh='~/.bash-my-aws/bin/bma instance-ssh'
alias instance-ssh-details='~/.bash-my-aws/bin/bma instance-ssh-details'
alias instance-stack='~/.bash-my-aws/bin/bma instance-stack'
alias instance-start='~/.bash-my-aws/bin/bma instance-start'
alias instance-state='~/.bash-my-aws/bin/bma instance-state'
alias instance-stop='~/.bash-my-aws/bin/bma instance-stop'
alias instance-tags='~/.bash-my-aws/bin/bma instance-tags'
alias instance-terminate='~/.bash-my-aws/bin/bma instance-terminate'
alias instance-termination-protection='~/.bash-my-aws/bin/bma instance-termination-protection'
alias instance-termination-protection-disable='~/.bash-my-aws/bin/bma instance-termination-protection-disable'
alias instance-termination-protection-enable='~/.bash-my-aws/bin/bma instance-termination-protection-enable'
alias instance-type='~/.bash-my-aws/bin/bma instance-type'
alias instance-userdata='~/.bash-my-aws/bin/bma instance-userdata'
alias instance-volumes='~/.bash-my-aws/bin/bma instance-volumes'
alias instance-vpc='~/.bash-my-aws/bin/bma instance-vpc'
alias instances='~/.bash-my-aws/bin/bma instances'
alias keypair-create='~/.bash-my-aws/bin/bma keypair-create'
alias keypair-delete='~/.bash-my-aws/bin/bma keypair-delete'
alias keypairs='~/.bash-my-aws/bin/bma keypairs'
alias lambda-function-memory='~/.bash-my-aws/bin/bma lambda-function-memory'
alias lambda-function-memory-set='~/.bash-my-aws/bin/bma lambda-function-memory-set'
alias lambda-function-memory-step='~/.bash-my-aws/bin/bma lambda-function-memory-step'
alias lambda-functions='~/.bash-my-aws/bin/bma lambda-functions'
alias launch-configuration-asgs='~/.bash-my-aws/bin/bma launch-configuration-asgs'
alias launch-configurations='~/.bash-my-aws/bin/bma launch-configurations'
alias log-groups='~/.bash-my-aws/bin/bma log-groups'
alias pcxs='~/.bash-my-aws/bin/bma pcxs'
alias rds-db-instances='~/.bash-my-aws/bin/bma rds-db-instances'
alias region-each='~/.bash-my-aws/bin/bma region-each'
alias regions='~/.bash-my-aws/bin/bma regions'
alias stack-arn='~/.bash-my-aws/bin/bma stack-arn'
alias stack-asg-instances='~/.bash-my-aws/bin/bma stack-asg-instances'
alias stack-asgs='~/.bash-my-aws/bin/bma stack-asgs'
alias stack-cancel-update='~/.bash-my-aws/bin/bma stack-cancel-update'
alias stack-create='~/.bash-my-aws/bin/bma stack-create'
alias stack-delete='~/.bash-my-aws/bin/bma stack-delete'
alias stack-diff='~/.bash-my-aws/bin/bma stack-diff'
alias stack-elbs='~/.bash-my-aws/bin/bma stack-elbs'
alias stack-events='~/.bash-my-aws/bin/bma stack-events'
alias stack-exports='~/.bash-my-aws/bin/bma stack-exports'
alias stack-failure='~/.bash-my-aws/bin/bma stack-failure'
alias stack-instances='~/.bash-my-aws/bin/bma stack-instances'
alias stack-outputs='~/.bash-my-aws/bin/bma stack-outputs'
alias stack-parameters='~/.bash-my-aws/bin/bma stack-parameters'
alias stack-recreate='~/.bash-my-aws/bin/bma stack-recreate'
alias stack-resources='~/.bash-my-aws/bin/bma stack-resources'
alias stack-status='~/.bash-my-aws/bin/bma stack-status'
alias stack-tag='~/.bash-my-aws/bin/bma stack-tag'
alias stack-tag-apply='~/.bash-my-aws/bin/bma stack-tag-apply'
alias stack-tag-delete='~/.bash-my-aws/bin/bma stack-tag-delete'
alias stack-tags='~/.bash-my-aws/bin/bma stack-tags'
alias stack-tags-text='~/.bash-my-aws/bin/bma stack-tags-text'
alias stack-tail='~/.bash-my-aws/bin/bma stack-tail'
alias stack-template='~/.bash-my-aws/bin/bma stack-template'
alias stack-update='~/.bash-my-aws/bin/bma stack-update'
alias stack-validate='~/.bash-my-aws/bin/bma stack-validate'
alias stacks='~/.bash-my-aws/bin/bma stacks'
alias sts-assume-role='~/.bash-my-aws/bin/bma sts-assume-role'
alias subnets='~/.bash-my-aws/bin/bma subnets'
alias vpc-az-count='~/.bash-my-aws/bin/bma vpc-az-count'
alias vpc-azs='~/.bash-my-aws/bin/bma vpc-azs'
alias vpc-default-delete='~/.bash-my-aws/bin/bma vpc-default-delete'
alias vpc-dhcp-options-ntp='~/.bash-my-aws/bin/bma vpc-dhcp-options-ntp'
alias vpc-endpoint-services='~/.bash-my-aws/bin/bma vpc-endpoint-services'
alias vpc-endpoints='~/.bash-my-aws/bin/bma vpc-endpoints'
alias vpc-igw='~/.bash-my-aws/bin/bma vpc-igw'
alias vpc-lambda-functions='~/.bash-my-aws/bin/bma vpc-lambda-functions'
alias vpc-nat-gateways='~/.bash-my-aws/bin/bma vpc-nat-gateways'
alias vpc-network-acls='~/.bash-my-aws/bin/bma vpc-network-acls'
alias vpc-rds='~/.bash-my-aws/bin/bma vpc-rds'
alias vpc-route-tables='~/.bash-my-aws/bin/bma vpc-route-tables'
alias vpc-subnets='~/.bash-my-aws/bin/bma vpc-subnets'
alias vpcs='~/.bash-my-aws/bin/bma vpcs'
# We'll find a less suprising place for this in future
# region() needs to be a function in order to let it
# set AWS_DEFAULT_REGION in the current shell
function region() {
local inputs=$(__bma_read_inputs $@);
if [[ -z "$inputs" ]]; then
echo "${AWS_DEFAULT_REGION:-'AWS_DEFAULT_REGION not set'}";
else
AWS_DEFAULT_REGION="$inputs";
fi
}