question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow Existing ALB to be used

See original GitHub issue

I have been following along and using the ALB events and provisioning PR #1807 that was just merged in by @PeteW and @youcandanch.

I was using those changes and integrating my Lambda’s into an existing ALB provisioned via terraform

I have some proposed zappa settings and code changes to allow the use of an existing ALB, multiple Zappa projects can then be deployed onto the same ALB

When using an existing ALB, there is an assumption of the Listener existing also, So instead of creating these resources Listener Rules need to be created https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/elbv2.html#ElasticLoadBalancingv2.Client.create_rule

These can be defiend in the zappa_settings like :

"alb_vpc_config": {
    "LoadBalancerArn": "arn:aws:acm:us-east-1:[your-account-id]:loadbalancer/app/[alb-name]/[f851177b4d4eb840]",
    "alb_listener_rule_conditions": {
        "Field": "path-pattern|host-header",
        "Values": ["api/*"|"api.example.com"]
    },
    "alb_listener_rule_priority": 1
}

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
alex-lampilacommented, Sep 21, 2019

This feature is also critical for me. Another related feature would be to expose settings to allow invocation without Zappa managing any of the ALB resources. In otherwords, Zappa would add lambda:InvokeFunction permission, but would not touch the ALB resources. The rationale for this would be centralized management of the ALB, listeners, and rules.

Is there anything that can be done to help move this PR forward? I am happy to help.

4reactions
ssilvermcommented, Dec 4, 2019

Bump for us as well.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use an existing ALB · Issue #228 · kubernetes-sigs/aws-load ...
As a user of Terraform (or, substitute CloudFormation), I would like to use an existing ALB with the ingress controller so that I...
Read more >
Application load balancing on Amazon EKS
When you create a Kubernetes ingress , an AWS Application Load Balancer (ALB) is provisioned that load balances application traffic.
Read more >
EKS using existing ALB with AWS Load Balancer Controller
I am setting up a cluster in EKS and am having trouble with the AWS Load balancer Controller and using an existing ALB...
Read more >
Use pre-created/existing LoadBalancer to expose your ...
1. Create LB/NLB/ALB with static IPs using terrafrom to route traffic to two ports between range of 30000–65000 · 2. Deploy Nginx-ingress ...
Read more >
Use an Existing ALB/NLB for Your EKS Cluster
During that process they often face the issue where they would like to use an existing ALB or NLB to route traffic to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found