https://pulumi.com logo
Title
g

green-intern-27665

08/15/2021, 11:48 AM
Hi!!! I currently have a ECS cluster with several services running on it smoothly thanks to pulumi. The load balancer URL that we are getting is a
http
any idea how to change that to a
https
?
m

many-yak-61188

08/15/2021, 1:57 PM
it is the listener specification
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

millions-eve-97186

08/19/2021, 2:15 PM
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/