AWS load balancer for Mean stack - amazon-web-services

I am learning load balancer and I have 2 instances connected to my load balancer but I always get out of service error.
Node is running in port 3000
my port configuration: 80 (HTTP) forwarding to 80 (HTTP)
health check: HTTP:3000/
My health check

When you use "HTTP" ping protocol you have to upload a test file at the path "/" you cannot just use "/" in the path field.
Use the below setting and it will work.

Related

AWS - Connection timing out on an EC2 Load balancer configured to port 443 with an SSL certificate

I have tried everything to get this to connect with HTTPS. I have added the SSL certificate to my IAM console, added the security group needed to open port 443 and attached it to my load balancer, and have added the HTTPS listener to my load balancer.
Still, I am getting a timeout when going to the HTTPS URL. The HTTP port is open and connects without issue.
I honestly don't know what information might be needed here, as this is my first go at setting up an HTTPS connection on an EC2 instance. Below are some screenshots of how things are set up in the EC2 console:
Load balancer listeners:
Load balancer port configuration:
And finally the Security Groups:
I realize these may not be the right details, and I cringe at the screenshots, but I am a one-man-band tasked to set this up, and I have no one to turn to for help! Thank you in advance for reading this and any insight provided.
I was able to make this work.
In the load balancer listener, I had an HTTP and HTTPS listener configured as so:
Load Balancer Protocol: HTTP | Load Balancer Port: 80 | Instance Port: 80
Load Balancer Protocol: HTTPS | Load Balancer Port: 443 | Instance Port: 80 | SSL Cert
The HTTPS listener was timing out no matter what I did. I even edited the security group to allow connections to port 443.
What I ended up doing was changing the HTTPS listener to this:
Load Balancer Protocol: SSL | Instance Protocol: TCP | Load Balancer Port: 443 | Instance Port: 80
And now I can connect to the HTTPS url. I have no idea why this works, but it does and it's good enough for me.

Stuck with cloudfront aws custom port

I created a network load balancer with EC2 instance and then I added listener with custom port 5000. I was successfully access load balancer dns with port 5000. I also created cloudfront linked with this load balancer but it seemed that AWS only supports port 80 or 443. Could anyone open custom port? Thanks
From Values That You Specify When You Create or Update a Distribution - Amazon CloudFront:
HTTP Port: The HTTP port that the custom origin listens on. Valid values include ports 80, 443, and 1024 to 65535. The default value is port 80.

AWS - Cannot access EC2 instance by 443 port

I'm struggling with ssl configuration of my Elastic Beanstalk environment. I can reach my site by 80 port (http) but I can't reach it using 443 port. I followed this documentation: https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/configuring-https-elb.html but was unable to configure it properly. I'm getting 408 HTTP Status trying to reach my site (https://apploit.com). I allowed inbound traffic to port 443 for the Security Group:
and configured my load balancer to listen on port 443 and redirect traffic to port 443 on the EC2 instance:
Any ideas what is wrong with my configuration?
Well, it works right now... don't know why, maybe it needed some time :)
As per documentation link shared by you only in question :
Single-instance environments don't have a load balancer and don't
support HTTPS termination at the load balancer.
Hope it helps you!

Load balancer AWS configuration

I have some loadbalancer which works fine. It's configured like this.
The app is just running on 80 and redirected by the webserver to 443 and has a route 53 above
Now I tried totally the same but when I set my loadbalancer on the same values + wildcardcert I get:
Updating load balancer named: xx failed Reason: Listeners can't talk to InstancePort 80 with secure and insecure protocols at the same time (Service: AmazonElasticLoadBalancing; Status Code: 409;
What am I missing? Why is it working for the other apps?
Your second listener should have HTTP protocol as instance protocol. Or you should use port 443 for instance protocol.

How to add tcp backend service to existing https load balancer google cloud

I am using an https load-balancer, on the top of an instance group.
I want to set on one server that he will listen on port 443, a second one that will listen on port 444 and the third that will listen on port 445.
How should I add the TCP backend service to existing https load balancer google cloud?
You want to create a HTTPS loadbalancer listening on the 443 port and forwarding the traffic to serves listening on different pots. The encrypted connection will be terminated on the loadbalancer from there the traffic will be sent to the Backends.
When you add the backends to the loadbalancer you will have to select the port to which you redirect the traffic for each one of them.
Therefore having 3 ports would require having three backends serving on the port 443, 444, 445.
In order to add a backend you can run the following command or edit the loadbalancer from the console:
gcloud compute backend-services add-backend BACKEND_SERVICE_NAME [...]