-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.yaml
More file actions
178 lines (177 loc) · 4.79 KB
/
config.yaml
File metadata and controls
178 lines (177 loc) · 4.79 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
---
cog_bundle_version: 4
name: mist
description: "Deprecated - Basic interaction with EC2 instances and S3 buckets"
long_description: "Mist has been deprecated, please see the ec2 and s3 bundles."
version: 0.5.1
permissions:
- mist:view
- mist:change-state
- mist:destroy
- mist:create
- mist:manage-tags
- mist:change-acl
docker:
image: cogcmd/mist
tag: "0.4"
commands:
ec2-find:
executable: /usr/local/bin/ec2_find
description: "Finds an ec2 instance"
documentation: mist:ec2-find --region=<region> [--state | --tags | --ami | --return=(id,pubdns,privdns,state,keyname,ami,kernel,arch,vpc,pubip,privip,az,tags)]
options:
region:
type: string
required: true
tags:
type: string
required: false
ami:
type: string
required: false
state:
type: string
required: false
return:
type: string
required: false
rules:
- must have mist:view
ec2-destroy:
executable: /usr/local/bin/ec2_destroy
description: "Destroys EC2 instances"
documentation: mist:ec2-destroy --region=<region> <instance_id>...
options:
region:
type: string
required: true
rules:
- must have mist:destroy
ec2-state:
executable: /usr/local/bin/ec2_state
description: "Starts, stops or reboots an EC2 instance"
documentation: mist:ec2-state --region=<region> [stop|start|reboot] <instance_id>...
options:
region:
type: string
required: true
rules:
- must have mist:change-state
vpc-list:
executable: /usr/local/bin/ec2_vpcs
description: "Lists VPCs"
documentation: mist:vpc-list --region=<region>
options:
region:
type: string
required: true
subnets:
type: bool
required: false
rules:
- must have mist:view
keypairs-list:
executable: /usr/local/bin/ec2_keypairs
description: "Lists keypairs"
documentation: mist:keypairs-list --region=<region> <name> ...
options:
region:
type: string
required: true
rules:
- must have mist:view
ec2-create:
executable: /usr/local/bin/ec2_create
description: "Creates a new EC2 instance"
documentation: mist:ec2-create --region=<region> --type=<type> --ami=<ami> --keypair=<pair> --az=<az> --vpc=<vpc> --tags=<tags> --user-data=<user_data>
options:
region:
type: string
required: true
type:
type: string
required: true
ami:
type: string
required: true
keypair:
type: string
required: true
az:
type: string
required: false
vpc:
type: string
required: false
tags:
type: string
required: false
user-data:
type: string
required: false
count:
type: int
required: false
rules:
- must have mist:create
ec2-tags:
executable: /usr/local/bin/ec2_tags
description: "Manages EC2 tags"
documentation: mist:ec2-tags --region=<region> --tags=<tags> [add|remove|rm] ...
options:
region:
type: string
required: true
tags:
type: string
required: true
rules:
- must have mist:manage-tags
s3-buckets:
executable: /usr/local/bin/s3_buckets
description: "Manages S3 buckets"
documentation: s3-buckets [list|delete|create] ...
rules:
- must have mist:view
- with arg[0] == 'list' must have mist:view
- with (arg[0] == 'delete' or arg[0] == 'rm') must have mist:destroy
s3-bucket-files:
executable: /usr/local/bin/s3_bucket_files
description: "Manages files in S3 buckets"
documentation: s3-bucket-files [delete|list] --force --bucket=<bucket name> --file=<search string> - List contents in a S3 bucket
options:
bucket:
type: string
required: false
file:
type: string
required: false
delete:
type: bool
required: false
force:
type: bool
required: false
rules:
- must have mist:view
- with (arg[0] == 'delete' or arg[0] == 'rm') must have mist:destroy
s3-bucket-acl:
executable: /usr/local/bin/s3_bucket_acl
description: "Manages S3 buckets ACLs"
documentation: s3-bucket-acl [set|list] [--policy=[public-read, private, public-read-write, authenticated-read] --force] --bucket=<bucket name> --file=<filename> - Displays or sets the ACL for a S3 bucket
options:
bucket:
type: string
required: false
file:
type: string
required: false
policy:
type: string
required: false
force:
type: bool
required: false
rules:
- must have mist:view
- with option[set-policy] == /.*/ must have mist:change-acl