AMI building AMI

Michiel van Baak michiel at vanbaak.eu
Wed Dec 27 17:31:49 UTC 2017


On Wed, Dec 27, 2017 at 03:53:03PM +0000, Rafal Lukawiecki wrote:
> Is there a list of AWS AMI ids (and regions) containing Colin’s AMI builder AMI? The 2015 article http://www.daemonology.net/blog/2015-11-21-FreeBSD-AMI-builder-AMI.html <http://www.daemonology.net/blog/2015-11-21-FreeBSD-AMI-builder-AMI.html> mentions one in us-east-1 ami-28682f42. Are there more? Or a documented procedure on using RE tools to achieve the same?
> 
> I am particularly interested in recompiling 11.1 release kernel, adding a good few packages (to speed up instance launch time) and creating an AMI out of that. Of course, I can take the lazy route of building a normal AWS AMI, which will not be as “clean and unused” as the one suggested in Colin’s article. But if there is a current way to do the cleaner thing, I would like to know, please.

Your best bet is to use the official FreeBSD AMI, do your changes, and
build an AMI out of that.
We do this with the help of ansible:
- boot official ami
- install ansible
- download ansible playbooks from S3 to /tmp
- run ansible
- clean /tmp
- build AMI
- ...
- PROFIT

-- 
Michiel van Baak
michiel at vanbaak.eu
GPG key: http://pgp.mit.edu/pks/lookup?op=get&search=0x6FFC75A2679ED069

NB: I have a new GPG key. Old one revoked and revoked key updated on keyservers.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-cloud/attachments/20171227/27b6673a/attachment.sig>


More information about the freebsd-cloud mailing list