This message was deleted.
# aws
s
This message was deleted.
m
it is the listener specification
Copy code
const listener = lbx.createListener(`api-web-${stack}`, {
  protocol: 'HTTPS',
  targetGroup: tgx,
  vpc: vpc,
  certificateArn: certificateValidation.certificateArn
});
you might need to do some more work to use an appropriate certificate
m
It might be a wise idea to provide redirection for the HTTP requests over to HTTPS. Here is some more info in case that is relevant for you: https://aws.amazon.com/premiumsupport/knowledge-center/elb-redirect-http-to-https-using-alb/