Can't generate a working customized EC2 AMI from Amazon Beanstalk sample appl

前端 未结 3 1013
不知归路
不知归路 2020-12-17 06:04

As I want to install Jenkins (ex-Hudson) to operate my continuous integration processes on AWS Beanstalk, I need a custom AMI because some parameters in Tomcat & Linux h

相关标签:
3条回答
  • 2020-12-17 06:43

    You should be able to create a customized AMI from a running instance as long as you delete /opt/elasticbeanstalk/srv/hostmanager/db/hostmanager.db on the instance before building the new AMI. I keep seeing people say "it can't be done, you need to start a clean instance outside of Elastic Beanstalk" and that's bunk. I've done it.

    A full write-up of what I've done to customize my install is here: http://stormerider.com/blog/2012/08/16/building-an-ubuntu-ami-with-elastic-beanstalk-support/ -- some of it may not apply to you, some of it may.

    0 讨论(0)
  • 2020-12-17 06:46

    If you give more details, this is a feature I'm planning for version 0.3.0 of Beanstalker, my set of Maven plugins for automating maven deployments to Elastic Beanstalk and Elastic MapReduce. It is available at http://beanstalker.ingenieux.com.br/

    Actually, the placeholders are there, but I haven't still done full testing of that. Are you willing to try and give help and advice?

    0 讨论(0)
  • 2020-12-17 07:04

    will answer my own question: the right way to obtain a working customized ami for Beanstalk is not to try to flash a running instance launched by Beanstalk but rather start the template ami for Beanstalk (ami-100fff79 for Tomcat 6 64 bits in my case) from EC2 console and customize it from there, flash it and you're done.

    You can then "edit configuration" for your BT environment by changing the ami to the new one and it works fine.

    regards didier

    0 讨论(0)
提交回复
热议问题