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回答
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ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ