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 年前檢視次數 259 次
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
已回答 10 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南