Created
July 18, 2021 08:48
-
-
Save markilott/5cd6de4c28e8185d32a2031a82e4177f to your computer and use it in GitHub Desktop.
ALB Listener with restricted inbound
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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