``` const httpListener = loadBalancer.createListe...
# aws
q
Copy code
const httpListener = loadBalancer.createListener(n('http'), {
    vpc,
    port: 80,
    protocol: 'TCP',
    loadBalancer,
    targetGroup: {
      vpc,
      port: 80,
      protocol: 'TCP',
      targetType: 'ip',
      loadBalancer,
    }
  });

  const httpsListener = loadBalancer.createListener(n('https'), {
    vpc,
    port: 443,
    protocol: 'TCP',
    loadBalancer,
    targetGroup: {
      vpc,
      port: 443,
      protocol: 'TCP',
      targetType: 'ip',
      loadBalancer,
    },