Skip to content

Instantly share code, notes, and snippets.

@MrRhodes
Created July 9, 2024 11:22
Show Gist options
  • Save MrRhodes/8a6d08b594608a0f2c81121c9c412a5e to your computer and use it in GitHub Desktop.
Save MrRhodes/8a6d08b594608a0f2c81121c9c412a5e to your computer and use it in GitHub Desktop.
load balancer listening on one port but routing to a different port with Pulumi and AWS crosswalk
const alb = new awsx.lb.ApplicationLoadBalancer("loadbalancer", {
defaultTargetGroup: {
port: 3000,
healthCheck: { // optional
port: "3000",
},
},
listener: {
port: 80,
},
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment