amazon-elb

AWS application load balancer listener rule paths

﹥>﹥吖頭↗ 提交于 2020-06-14 06:36:15
问题 Configuring an application load balancer. I have 3 separate target groups and about 30 different paths I'd like to filter on. When filling out path pattern what are the possible values? Given it's called "pattern" gives the impression it can accept regex but validation is preventing this. Is it possible to match multiple paths to a target group or will I have to create a separate rule for each path? I realise using an additional level in my paths (ie /group1/path, /group2/path) would simplify

How to redirect to https on tomcat behind ELB

穿精又带淫゛_ 提交于 2020-06-12 07:06:50
问题 I have following setup on AWS ELB (terminates SSL) -> nginx receives http on 80 and forwards to -> tomcat on 8080 But when i do a response.sendRedirect("/somepath") in my servlet then the browser is receiving it as 302 http://example.com/somepath But I want the browser to get https://example.com/somepath, how do I achieve this in tomcat or nginx without setting up SSL on them. 回答1: This is because of response.sendRedirect(); SSL Offloading servers actually cause this problem of https URLs

How to redirect to https on tomcat behind ELB

邮差的信 提交于 2020-06-12 07:06:30
问题 I have following setup on AWS ELB (terminates SSL) -> nginx receives http on 80 and forwards to -> tomcat on 8080 But when i do a response.sendRedirect("/somepath") in my servlet then the browser is receiving it as 302 http://example.com/somepath But I want the browser to get https://example.com/somepath, how do I achieve this in tomcat or nginx without setting up SSL on them. 回答1: This is because of response.sendRedirect(); SSL Offloading servers actually cause this problem of https URLs

What's the target group port for, when using Application Load Balancer + EC2 Container Service

≡放荡痞女 提交于 2020-05-24 17:20:32
问题 I'm trying to setup an ALB which listens on port 443, load balancing to ECS Docker containers on random ports, lets say I have 2 container instances of the same task definition, listening on port 30000 and 30001. When I try to create a target group in the AWS EC2 Management console, there's a "port" input field with 1-65535 range. What number should I put there? And when I try to create a new service in the AWS EC2 Container Service console, together with a new target group to connect to a

Terraform how to get IP address of aws_lb

。_饼干妹妹 提交于 2020-02-24 05:27:40
问题 Question If there a way to get the assigned IP address of an aws_lb resource at the time aws_lb is created by Terraform? As in AWS documentation - NLB - To find the private IP addresses to whitelist, we can find out the IP address associated to ELB. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/. In the navigation pane, choose Network Interfaces. In the search field, type the name of your Network Load Balancer. There is one network interface per load balancer subnet. On

Terraform how to get IP address of aws_lb

不想你离开。 提交于 2020-02-24 05:26:31
问题 Question If there a way to get the assigned IP address of an aws_lb resource at the time aws_lb is created by Terraform? As in AWS documentation - NLB - To find the private IP addresses to whitelist, we can find out the IP address associated to ELB. Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/. In the navigation pane, choose Network Interfaces. In the search field, type the name of your Network Load Balancer. There is one network interface per load balancer subnet. On

AWS Elastic Load Balancing: Seeing extremely long initial connection time

北城余情 提交于 2020-01-20 03:09:28
问题 For a couple of days, we often see an extremely long initial connection time (15s - 1.3 minutes) to our ELBs when making any request via ssl. Oddly, I was only able to observe this in Google Chrome (not Safari nor Firefox nor curl). It does not occur every single request, but around 50% of requests. It occurs with the first request (OPTIONS-call). Our setup is the following: Cross-Zone ELB that connects to a node.js backend (currently in 2 AZs in eu-west-1). All instances are healthy and once

AWS Elastic Load Balancing: Seeing extremely long initial connection time

大兔子大兔子 提交于 2020-01-20 03:09:05
问题 For a couple of days, we often see an extremely long initial connection time (15s - 1.3 minutes) to our ELBs when making any request via ssl. Oddly, I was only able to observe this in Google Chrome (not Safari nor Firefox nor curl). It does not occur every single request, but around 50% of requests. It occurs with the first request (OPTIONS-call). Our setup is the following: Cross-Zone ELB that connects to a node.js backend (currently in 2 AZs in eu-west-1). All instances are healthy and once

How to create and attach a ELB properly in Boto3

♀尐吖头ヾ 提交于 2020-01-12 11:40:10
问题 I'm new to Amazon's Boto3 API. I created a basic diagram of my sample architecture shown below, with an ELB, 4 instances, 2 subnets and and 2 target groups in 2 different Availability Zones (2 instances in each target group). I know how to create an EC2 instance, a target group, subnets, and an ELB. But what ELB functions to use, is not clear to me. How I can attach the ELB to other components? Basically, how to add instances to the ELB? I'm not sure what next steps and functions are needed

Session stickiness on Amazon Web Services

半城伤御伤魂 提交于 2020-01-11 15:43:31
问题 I'm a bit confused about the use of the session stickiness on Amazon Web Services. When I deploy my java web application using Amazon Elastic Beanstalk, I can choose to enable the session stickiness and then specify a cookie expiration period. My application uses cookies for the session (JSESSIONID) as well as for other small things. Most of the website is accessible only after logging in (I use Spring security to manage it). The website will run on up to 25 small EC2 instances. Should I