AWS Elastic Beanstalk supports Dynamic Instance Type Selection

AWS Elastic Beanstalk now supports dynamic instance type selection for Elastic Beanstalk’s environments. This means Elastic Beanstalk will automatically fetch all compatible instance types for you to run a variety of applications. With dynamic instance type, you can choose the best suited instance type to optimize your application’s performance. For example, if you have machine learning applications, you can optimize performance by selecting an accelerated computing instance type such as p3, or p4d.

Source:: Amazon AWS