Questions
How to attach Elastic Beanstalk instance to Application Load Balancer (ALB)?
Why is ALB ignored and AWS creates a new Classic LB?
The AWS Elastic Beanstalk Configuring an Application Load Balancer documentation says:
You can set the load balancer type only during environment creation using the EB CLI, the Elastic Beanstalk APIs, or using .ebextensions like the one in the example .ebextensions/application-load-balancer.config; the console does not support this functionality.
Related
When creating a Kubernetes service of type LoadBalancer on an EKS cluster, a load balancer is automatically provisioned by the AWS Load Balancer Controller.
For specific reasons, I'd like to have more control over the configuration of the load balancer than what is provided by the AWS Load Balancer service annotations.
Question: I'd like to know if it's possible to create the load balancer before the Kubernetes service (say in Terraform), and configure the Kubernetes service to use the load balancer (for example by providing the AWS Load Balancer Controller with the load balancer name).
Some research: I found the service annotation service.beta.kubernetes.io/aws-load-balancer-name, but it seems to be used to create a load balancer with the specified name, rather than find and use an existing load balancer with the specified name.
I am new to AWS and web development in general. I have React JS and Spring Boot website and am trying to attach Elastic IPs to my application load balancers using terraform. I am unable to figure out as how to get an elastic IP and then attach it to my load balancers. As I have two services in my cluster would I need two separate elastic IPs or would one do?
How do we attach those IPs to the load balancers in terraform?
Im trying to enable https on my Elastic Beanstalk application and it looks like I need to have a Load Balancer.
In my EB settings, I do have a autos calling balancer
In the docs show a different page on how to create a load balancer
This configuration setting doesn't show up anymore in the elastic beanstalk settings.
I've also looked into creating a load balancer from the EC2 instance page, and attached this load balancer to my EB, created a security group that supports http and https and haven't been able to get it to work
SO my question is, what is the correct way to enable https
Attached is our beanstalk configuration console, you should be able to turn on secure listener port as well.
Check with Section "To turn on the secure listener port" in AWS doc reference
I got a new domain and want to change my Elastic Beanstalk app name from domain-name.elasticbeanstalk.com to www.domain-name.com. When I created the EB app, I chose Single Instance.
I followed these instructions to set up the domain. I selected my load balancer, but my domain seems to map to another app I have. This seems to be because I only created one load balancer with another EB app, and not the current app I am trying to map the domain to.
My questions are:
1) How can I use the single load balancer (associated with a different app) to point the domain correctly? This is probably not possible.
2) How can I retroactively add a load balancer to an existing EB app? Or do I have to recreate the EB app and add the Load Balancer at that point?
From the two options you provided, I will suggest to use the second option.
EB = Elastic Beanstalk
ELB = Elastic Load Balancer
Follow the below steps.
Launch a ELB in AWS Console. If your EB instance is in a VPC then launch the ELB in the same VPC.
When you are launching the ELB attach the EB instance to that load balancer.
Then you can point your domain www.domain-name.com to that ELB using Route 53.
Or you can change your environment type from single instance to Load Balancing Environment. In this case, check below user Guide:
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/using-features-managing-env-types.html?icmpid=docs_elasticbeanstalk_console
I want to use websockets and SSL. Therefore I cannot use the default Elastic Beanstalk load balancer. I understand that Amazon has recently released an "Application Load Balancer" that supports websockets.
How do I configure my Elastic Beanstalk application to use this new type of load balancer?
Application Load Balancer can be used with Elastic Beanstalk now:
http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/environments-cfg-applicationloadbalancer.html
In order to used it your environment must meet the following requirements:
"must be in a default or custom VPC, and must have a service role with the standard set of permissions"
However when creating an environment via AWS console I haven't managed to find how to choose Application Load Balancer instead of a classic one. It has still the same option - "Load Balancer" to choose and when checked, it creates a classic Load Balancer. The only way I did managed to create an environment with Application Load Balancer is via aws eb cli as specified in the doc above:
$ eb create test-env --elb-type application
This will create Application Load Balancer. Then you will only need to configure it according your needs.