aboutsummaryrefslogtreecommitdiff
path: root/doc/eclat-setaattr.1
blob: 0efd39f0ab3e8dc510283ecdc6138f9dbfa2bd9d (plain)
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
.\" This file is part of Eclat -*- nroff -*-
.\" Copyright (C) 2012-2021 Sergey Poznyakoff
.\"
.\" Eclat is free software; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published by
.\" the Free Software Foundation; either version 3, or (at your option)
.\" any later version.
.\"
.\" Eclat is distributed in the hope that it will be useful,
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
.\" GNU General Public License for more details.
.\"
.\" You should have received a copy of the GNU General Public License
.\" along with Eclat.  If not, see <http://www.gnu.org/licenses/>.
.TH ECLAT-SETAATTR 1 "January 26, 2015" "ECLAT" "Eclat User Reference"
.SH NAME
eclat-setaattr, eclat-modify-image-attribute \- modify attributes of an image
.SH SYNOPSIS
.nh
.na
\fBeclat setaattr\fB \fIAMI\-ID\fR \fBdescription\fR \fIVALUE\fR
.PP
\fBeclat setaattr\fB \fIAMI\-ID\fR \fBProductCode\fR \fICODE\fR [\fICODE\fR...]
.PP
\fBeclat setaattr\fB \fIAMI\-ID\fR \fBLaunchPermission\fR\
 [\fIOPTION\fR] \fIVALUE\fR [[\fIOPTION\fR] \fIVALUE\fR...]
.PP
\fBeclat setaattr\fB \fIAMI\-ID\fR \fBLaunchPermission\fR\
 {\fB\-a\fR|\fB\-d\fR}\
 {\fB\-\-add\fR|\fB\-\-delete\fR} {\fB\-\-group\-name\fR|\fB\-\-user\-id\fR}\
 \fIVALUE\fR
.ad
.hy
.SH DESCRIPTION
Set or remove attributes of an AWS image.
.PP
Only three attributes can be modified:
.BR description ,
.BR ProductCode ", and"
.BR LaunchPermission .
All three names are case-insensitive.
.PP
Setting the description requires a single value (see the first form in
the synopsis).
.PP
The \fBProductCode\fR attribute can be assigned multiple values in the
single invocation (second form in the synopsis).  Note, that this
operation is irreversible: after a product code is added to an AMI, it
can't be removed.
.PP
The third form adds or removes AWS accounts to the
\fBLaunchPermission\fR list.  It allows for the following options:
.TP
.BR \-a ", " \-\-add
Add the accounts that follow this option.
.TP
.BR \-d ", " \-\-delete
Delete the accounts that follow this option.
.PP
This two options invert each other's effect.  The default action is
\fB\-\-add\fR, so the use of the \fB\-\-add\fR option is optional if
it is the only option in the command line.
.TP
.BR \-g ", " \-\-group\-name
Treat the arguments that follow as group names, instead of the account
numbers.  According to the AWS documentation, the only valid value
that can be used with this option is \fBall\fR, which means all Amazon
EC2 users.
.TP
.BR \-u ", " \-\-user\-id
Treat the arguments that follow as user (account) IDs.  This is the
default.  This option is intended to be used after
\fB\-\-group\-name\fR to cancel its effect.
.SH EXAMPLE
.nr step 1 1
.IP \n[step].
Add a description :
.PP
.EX
.B eclat setaattr ami-abcde012 description "Database server"
.EE
.IP \n+[step].
Allow account \fB123456701234\fR to launch instances from
\fBami-abcde012\fR, and revoke that permission from the rest of EC2 users.
.PP
.EX
.B eclat setaattr ami-abcde012 LaunchPermission --add 123456701234 \\\\
.B       --del --group all
.EE
.SH "SEE ALSO"
.BR eclat (1),
.BR eclat\-lsaattr (1).
.SH AUTHORS
Sergey Poznyakoff
.SH "BUG REPORTS"
Report bugs to <bug\-eclat@gnu.org.ua>.
.SH COPYRIGHT
Copyright \(co 2012-2018 Sergey Poznyakoff
.br
.na
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
.br
.ad
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
.\" Local variables:
.\" eval: (add-hook 'write-file-hooks 'time-stamp)
.\" time-stamp-start: ".TH [A-Z_][A-Z0-9_.\\-]* [0-9] \""
.\" time-stamp-format: "%:B %:d, %:y"
.\" time-stamp-end: "\""
.\" time-stamp-line-limit: 20
.\" end:

Return to:

Send suggestions and report system problems to the System administrator.