Skip to content

Migrate from using ELB to ALB Load Balancer Type for DCR #9310

@ioannakok

Description

@ioannakok

In DCR we are currently using ELB (Classic Load Balancer) which will probably be deprecated in the near future.

/**
* TODO - migrate this ELB (classic load balancer) to an ALB (application load balancer)
* @see https://github.com/guardian/cdk/blob/512536bd590b26d9fcac5d39329e8217103d7859/src/constructs/loadbalancing/elb.ts#L24-L46
*
* GOTCHA: The load balancer name appends `-ELB` when the `app = "rendering"` for backwards compatibility
* We removed this to avoid the `LoadBalancerName.length > 32`. This will be fixable once we migrate to ALBs.
*/
const loadBalancerName = app === 'rendering' ? `${stack}-${stage}-${app}-ELB` : `${stack}-${stage}-${app}`;
const loadBalancer = new GuClassicLoadBalancer(

The DevX recommendation is to use GuClassicLoadBalancer only when migrating an existing stack and need to retain the load balancer. This was done in #8566

This ticket is to migrate from using ELB to ALB Load Balancer Type. As load balancer is a stateful resource and replacement is unexpected, we need to follow the DevX Migration Guide.

Useful docs

Metric

What metric should we use to evaluate this change?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions