- Newest
- Most votes
- Most comments
Hello.
AWS has deprecated the use of launch configurations.
Therefore, you must configure AutoScaling using launch templates in ElasticBeanstalk as well.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-autoscaling-launch-templates.html
Starting on October 1, 2024, the Amazon EC2 Auto Scaling service will no longer support the creation of launch configurations for new accounts. This change is due to launch configurations being phased out and replaced by launch templates by the Amazon EC2 Auto Scaling service. For more information, see Auto Scaling launch configurations in the Amazon EC2 Auto Scaling User Guide.
To use the launch template, you should be able to use it by setting "RootVolumeType" to "gp3" or "DisableIMDSv1" to "true" as described in the following document.
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-autoscaling-launch-templates.html#environments-cfg-autoscaling-launch-templates-options
I apologize, but I don't have enough information from the provided sources to directly address your specific issue with the PHP application not starting on Elastic Beanstalk. However, I can provide some general guidance on deploying PHP applications to Elastic Beanstalk that may help:
-
Ensure you have a valid PHP application source bundle to upload as your first application version. This should contain all necessary files for your PHP application.
-
Check that you're using a supported PHP version on Elastic Beanstalk. AWS Elastic Beanstalk supports various PHP platform branches for different PHP versions.
-
Verify your application's configuration settings in the Elastic Beanstalk console. You may need to adjust PHP settings, environment variables, or other options.
-
Review the Elastic Beanstalk logs for any error messages or issues that might be preventing your application from starting.
-
Consider using the Elastic Beanstalk Command Line Interface (EB CLI) to deploy your application, as it can sometimes provide more detailed error information.
-
Ensure your application code is compatible with the Elastic Beanstalk environment and doesn't have any dependencies that are missing or incompatible.
If you continue to experience issues, you may need to provide more specific error messages or logs to diagnose the problem accurately. You might also want to test your PHP application locally before deploying to Elastic Beanstalk to ensure it runs correctly.
Sources
QuickStart: Deploy a PHP application to Elastic Beanstalk - AWS Elastic Beanstalk
Using the Elastic Beanstalk PHP platform - AWS Elastic Beanstalk
Deploying PHP applications with Elastic Beanstalk - AWS Elastic Beanstalk
Relevant content
- asked 5 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 4 months ago
- How do I mount an Amazon EFS volume to an application directory in an Elastic Beanstalk environment?AWS OFFICIALUpdated 19 days ago
- AWS OFFICIALUpdated 8 months ago
Thanks, it works. AWS should set this as a default.