def __init__()

in ecs-provider/ecs_provider/ecs_provider_stack.py [0:0]


    def __init__(self, scope: core.Construct, construct_id: str, vpc: ec2.Vpc, **kwargs) -> None:
        super().__init__(scope, construct_id, **kwargs)

        self._vpc = vpc

        # Environment variables which are required to run this. Using the included Makefile
        # makes this simple but this is easy to adjust.
        apigw_account_arn = get_env("API_GATEWAY_ACCOUNT_ARN")
        image_tag = get_env("IMAGE_TAG")
        repository_arn = f'arn:aws:ecr:{get_env("AWS_REGION")}:{get_env("AWS_ACCOUNT")}:repository/dog-names'

        cluster = self._create_cluster()
        nlb = self._create_fargate_service(cluster, repository_arn, image_tag)

        vpce_service = self._create_vpce_service(apigw_account_arn, nlb)
        core.CfnOutput(
            self,
            'ecs-vpc-endpoint-service-name',
            export_name='VPCEndpointServiceName',
            value=vpce_service.vpc_endpoint_service_name
        )