def create_alb()

in dcv_session_manager_infrastructure/dcv_session_manager_infrastructure_stack.py [0:0]


    def create_alb(self, vpc):
        # ALB Security group
        alb_security_group = ec2.SecurityGroup(self, "ALBSecurityGroup",
                                               vpc=vpc,
                                               description="ALB SecurityGroup ",
                                               security_group_name="ALB SecurityGroup",
                                               allow_all_outbound=True,
                                               )
        # Allow 443 access to the ALB
        alb_security_group.add_ingress_rule(ec2.Peer.ipv4(
            '0.0.0.0/0'), ec2.Port.tcp(443), "allow http access")

        # Create ALB
        lb_enginframe = elbv2.ApplicationLoadBalancer(
            self, "EFLB",
            vpc=vpc,
            internet_facing=True,
            security_group=alb_security_group)

        return alb_security_group, lb_enginframe