Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ELB/ALB support #25

Closed
miere opened this issue Feb 19, 2017 · 10 comments
Closed

Add ELB/ALB support #25

miere opened this issue Feb 19, 2017 · 10 comments
Labels
aws:elb AWS Elastic Load Balancer type: feature New feature, or improvement to an existing feature

Comments

@miere
Copy link

miere commented Feb 19, 2017

Hi atlassian developers

I'd like to suggest you guys to include AWS Elastic (and Application) Load Balancing support. It would be nice to have a reliable implementation of these AWS's services to use on our unit tests.

┆Issue is synchronized with this Jira Bug by Unito

@whummer
Copy link
Member

whummer commented Feb 21, 2017

Thanks for the suggestion, we'll look into it.

A potential problem is that there are some inherent limitations due to the fact that we're executing things locally. For instance, the ELB CreateLoadBalancer API method returns a DNS name, which will require some adjustments to the tests if they are executed locally: https://docs.aws.amazon.com/elasticloadbalancing/2012-06-01/APIReference/API_CreateLoadBalancer.html#API_CreateLoadBalancer_ResponseElements
Potential solutions that come to mind would be to 1) have the tests send requests to localhost and send along a Host: ... HTTP header with the DNS name which allows the ELB mock to look up the corresponding backend service, or 2) actually update the /etc/hosts configuration file on the test machine (which typically requires root access and is therefore not really an option).

Another aspect to consider is that, if we want to support LocalStack ELB in Docker mode, we need to find a reliable way to forward any invocations hitting the ELB mock inside the Docker container to target services running outside the container (on the host operating system, or potentially in another Docker container running in parallel).

So there are a couple of things to consider if we want to add generic support for ELB/ALB. Did you have any particular use case in mind? Would be great to have a starting point, maybe an existing unit/integration test?

@nilathj
Copy link

nilathj commented Apr 18, 2019

I would like the ability to trigger a lambda from an ALB end point.

@SJ-SivaSubrahmaniam
Copy link

We are facing issues, having Node multiple instances/ALB routing, If we had this setup in local, it will be better

@terozio
Copy link

terozio commented May 27, 2020

Old feature request but this would be really beneficial to have!

We would also like to be able use ALB+Lambda setup locally, could definitely go for the paid version if this was made available.

@kishaningithub
Copy link

it would be great if we have target groups and operations like "DescribeTargetHealth"

@subratamazumder
Copy link

subratamazumder commented Sep 10, 2020

@terozio I am working on small POC to mock ALB-Lambda in local. It's at a very initial state using python. Might be of your interest.

@thrau thrau added aws:alb aws:elb AWS Elastic Load Balancer labels Oct 18, 2021
@liubog2008
Copy link

How about this feature?

@MarcelStranak MarcelStranak added the type: feature New feature, or improvement to an existing feature label Feb 25, 2022
@grinsteindavid
Copy link

hi, without elb.. is very complicate to test a simple aws stack

@monil1334
Copy link

@silv-io any update with supporting ALB in localstack? Do we have a timeline to support this feature?

@silv-io
Copy link
Member

silv-io commented Mar 27, 2023

We're happy to inform you that LocalStack already supports CRUD operations and basic routing for ELB in our pro version. However, if you require any specific features that are not currently supported, we encourage you to create a new issue on our Github repository with your requirements. Our team will review your request and try to incorporate it into LocalStack in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
aws:elb AWS Elastic Load Balancer type: feature New feature, or improvement to an existing feature
Projects
None yet
Development

No branches or pull requests