Elastic beanstalk not support on custom AMI

amazon ec2amazon-amiamazon-web-serviceselastic-beanstalk

I have launched a default Amazon ElasticBeanstalk image(php) in EC2 .I can able to deployed application on Apache.I am trying to use a custom AMI in AWS Beanstalk and does not get deployed on the instance.

How to use custom AMI?

Best Answer

In order to use a custom AMI with elastic beanstalk, you have to install cloud-init on your AMI and launch it automatically during boot.

More information here: Using Custom AMIs