Giter Club home page Giter Club logo

Comments (9)

acravenho avatar acravenho commented on August 16, 2024

For this issue, we need an Application Load Balancer to handle WebSockets. Currently, we have a Classic Load Balancer

from blockscout-terraform.

acravenho avatar acravenho commented on August 16, 2024

@bitwalker How difficult would it be to implement an Application Load Balancer as opposed to a Classic Load Balancer?

from blockscout-terraform.

bitwalker avatar bitwalker commented on August 16, 2024

@acravenho It should be pretty straightforward:

  • Create an application load balancer resource
  • Create a target group resource (configured with the internal port and protocol, not end-user facing (that is handled by the ALB)
  • Create an application load balancer listener resource, configured with the external port/protocol/etc.; configure it to use the target group resource created above
  • Replace the use of load_balancers in the auto-scaling group resource with target_group_arns
  • Change the CodeDeploy deployment config to use target_group_info rather than elb_info

I believe that should cover everything that needs to change

from blockscout-terraform.

acravenho avatar acravenho commented on August 16, 2024

@bitwalker Perfect. I'll give a try today manually and see if I run into any issues 👍

from blockscout-terraform.

bitwalker avatar bitwalker commented on August 16, 2024

@acravenho You probably have already seen it, but if you want to know what options are available for each resource, you can find those docs here

from blockscout-terraform.

acravenho avatar acravenho commented on August 16, 2024

@bitwalker I've attempted it before using those docs but now that I have a more defined path I should be able to figure it out. Thank you for the help :)

from blockscout-terraform.

bitwalker avatar bitwalker commented on August 16, 2024

No problem! And yeah, the ALB's have some more moving parts than the classic ELBs, so they are a bit trickier to figure out just from the docs - the target group thing is the main sticking point, once you've got that sorted, they start to feel more familiar

from blockscout-terraform.

acravenho avatar acravenho commented on August 16, 2024

Thanks for the help @bitwalker. Couldn't have done it without you.

from blockscout-terraform.

bitwalker avatar bitwalker commented on August 16, 2024

No problem! Happy to help :)

from blockscout-terraform.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.