Skip to content

Commit

Permalink
New plugin to publish an AMI
Browse files Browse the repository at this point in the history
  • Loading branch information
andsens committed Jan 23, 2013
1 parent 4a05f79 commit dfe24b6
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

#### Major changes: ####
* The root volume is once again set to be deleted upon termination of the instance (bug introduced in 5f04e809d7, see issue #42)
* New plugin to publish an AMI

### 2013-01-21 Anders Ingemann <[email protected]> ###

Expand Down
2 changes: 2 additions & 0 deletions plugins/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ You can run them via the `--plugin` option when bootstrapping:
Enables unattended upgrades with aptitude. Your EC2 server will upgrade itself daily.
* `admin-user`
Creates a user named 'admin', gives it sudo rights and disables the root login.
* `publish-ami`
Grants launch permission of the new AMI to everybody.
* `remount`
Remounts the bootstrapped volume.
With this plugin you can inspect the results of the bootstrapping process without launching an instance.
Expand Down
3 changes: 3 additions & 0 deletions plugins/publish-ami
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
insert_task_after $TASK_CREATE_AMI \
$plugindir/publish-ami-tasks/grant-launch-permission
2 changes: 2 additions & 0 deletions plugins/publish-ami-tasks/grant-launch-permission
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/bin/bash
euca-modify-image-attribute --launch-permission --add all "$ami_id"

0 comments on commit dfe24b6

Please sign in to comment.