Search code examples
amazon-web-servicesamazon-elastic-beanstalkamazon-elbamazon-waf

Elastic Beanstalk Change ELB Type


Does anyone know if it's possible to change an existing AWS Elastic Beanstalk environment to an Application Load Balancer (instead of a classic one).

As far as I know only Application ELB's can be protected with AWS WAF and DDOS "Shield" so any existing EB app can't take advantage of these features since they have classic ELB's.


Solution

  • Hello As Per AWS Documentation:

    The Elastic Beanstalk Environment Management Console only supports creating and managing an Elastic Beanstalk environment with a Classic Load Balancer. For other options, see Application Load Balancer and Network Load Balancer.

    Also

    Note You can only set the load balancer type during environment creation. (Refer AWS Documetnation)

    So When you deploy application to Elastic Beanstalk via AWS CLI:

    Try

    eb create test-env --elb-type network
    

    or

    eb create test-env --elb-type application