HF Inference Endpoints don't finish Initializing

I am creating an inference endpoint using the HfApi. I created a few endpoints using the create_inference_endpoint() method. The endpoints never finish initializing though and I am unable to view the logs as well.

I am using the following code:

api = HfApi(token="")
endpoint = api.create_inference_endpoint(
            endpoint_name,
            repository="gpt2",
            framework="custom",
            task="text-generation",
            accelerator="cpu",
            instance_size="large",
            instance_type="c6i",
            region="us-east-1",
            vendor="aws",
            type="protected",
            namespace=""
        )