How to enable SSL as well as redirect to HTTPS on Graviton Based Elastic Beanstalk Instances?

0

I am trying to enable SSL on graviton based Elastic Beanstalk environments. However, the usual method on x86 instances where you go to Load Balancers and connect the SSL certificate does not work because the graviton based instances do not have a load balancer. How do I enable SSL on graviton based Elastic Beanstalk environments?

已提问 2 年前238 查看次数
2 回答
1

Graviton environments can have load balancers too (I have several environments like this). They are configured the same way as x86. When you are creating a new environment you have to press "Configure more options", then choose "High Availability" from the radio list at the top.

已回答 2 年前
0

Graviton based Elastic Beanstalk instances support load balancers as non Graviton based instances do. You can attach an application load balancer to the Beanstalk instance and configure the redirection rules for moving HTTP traffic to HTTPs. When you configure your load balancer to terminate HTTPS, the connection between the client and the load balancer is secure. Backend connections between the load balancer and EC2 instances use HTTP, so no additional configuration of the instances is required.

If you need to secure the connection all the way to the EC2 instances behind the load balancer, you can configure the proxy server that runs on the instance to terminate HTTPS. Configuring your instances to terminate HTTPS connections requires the use of configuration files to modify the software running on the instances, and to modify security groups to allow secure connections.

To assign a certificate to your environment's load balancer:

  1. Open the Elastic Beanstalk console, and in the Regions list, select your AWS Region.
  2. In the navigation pane, choose Environments, and then choose the name of your environment from the list.
  3. In the navigation pane, choose Configuration.
  4. In the Load balancer configuration category, choose Edit.
  5. On the Modify load balancer page:

For application load balancer, a. Choose Add listener. b. In the Application Load Balancer listener dialog box, configure the following settings:

  • For Port, type the incoming traffic port, typically 443.
  • For Protocol, choose HTTPS.
  • For SSL certificate, choose your certificate. c. Choose Add.

For Network Load Balancer, a. Choose Add listener. b. In the Network Load Balancer listener dialog box, for Port, type the incoming traffic port, typically 443. c. Choose Add.

  1. Choose Apply at the bottom of the page.

For more use cases and information, refer - https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-elb.html

AWS
已回答 9 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则