Skip to content

Instantly share code, notes, and snippets.

@markilott
Created July 18, 2021 08:48
Show Gist options
  • Save markilott/5cd6de4c28e8185d32a2031a82e4177f to your computer and use it in GitHub Desktop.
Save markilott/5cd6de4c28e8185d32a2031a82e4177f to your computer and use it in GitHub Desktop.
ALB Listener with restricted inbound
// Https listener
const httpsListener = alb.addListener('https', {
port: 443,
protocol: ApplicationProtocol.HTTPS,
certificates: [certificate],
open: false, // Prevent CDK from adding an allow all inbound rule to the security group
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment