# Serverless endpoint deployment with Terraform

**URL:** <https://discuss.huggingface.co/t/serverless-endpoint-deployment-with-terraform/25018>\
**Category:** Amazon SageMaker\
**Created:** [October 26, 2022, 2:58pm UTC](https://discuss.huggingface.co/t/serverless-endpoint-deployment-with-terraform/25018 "2022-10-26T14:58:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![YannAgora](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@YannAgora](https://discuss.huggingface.co/u/YannAgora)\
**Post date:** [October 26, 2022, 2:58pm UTC](https://discuss.huggingface.co/t/serverless-endpoint-deployment-with-terraform/25018/1 "2022-10-26T14:58:14Z")

</div>

Hello @philschmid,

I’d like to deploy a custom classification model from S3 on a serverless endpoint through Terraform with the `huggingface_sagemaker` module: [Terraform Registry](https://registry.terraform.io/modules/philschmid/sagemaker-huggingface/aws/latest/examples/deploy_from_s3)

Is it possible to use it for serverless endpoint or it only works for real time inference ?

Thank you in advance 😊

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](https://discuss.huggingface.co/u/philschmid)\
**Post date:** [October 31, 2022, 8:43am UTC](https://discuss.huggingface.co/t/serverless-endpoint-deployment-with-terraform/25018/2 "2022-10-31T08:43:51Z")

</div>

Hello @YannAgora,

That’s currently not supported. But there module is openly available at: [GitHub - philschmid/terraform-aws-sagemaker-huggingface](https://github.com/philschmid/terraform-aws-sagemaker-huggingface)  
It would be nice if you could add a PR with the feature. Should be quite similar to the support for `async`

---

<div class="post-metadata">

**Author:** ![YannAgora](https://avatars.discourse-cdn.com/v4/letter/y/c0e974/32.png) [@YannAgora](https://discuss.huggingface.co/u/YannAgora)\
**Post date:** [November 2, 2022, 8:47am UTC](https://discuss.huggingface.co/t/serverless-endpoint-deployment-with-terraform/25018/3 "2022-11-02T08:47:23Z")

</div>

Hey @philschmid 👋

Happy to see the PR for serverless support has been accepted and released 👌

---

<div class="post-metadata">

**Author:** ![philschmid](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/philschmid/32/38022_2.png) [@philschmid](https://discuss.huggingface.co/u/philschmid)\
**Post date:** [November 2, 2022, 9:10am UTC](https://discuss.huggingface.co/t/serverless-endpoint-deployment-with-terraform/25018/4 "2022-11-02T09:10:35Z")

</div>

Thank you for your great contribution! 🤗
