Skip to content

Commit

Permalink
docs: add IaC section to the docs with first examples for Pulumi. (#491)
Browse files Browse the repository at this point in the history
This PR introduces a new subsection under the Deployment section titled
"Deploy using Infrastructure as Code"

In this subsection, we will outline methods for utilizing IaC tools such
as Pulumi, OpenTofu, and AWS CDK, among others.

I have initiated with examples in Pulumi and AWS. Examples for other
cloud providers are expected to be added shortly.

Co-authored-by: Eugene Yurtsev <[email protected]>
  • Loading branch information
dirien and eyurtsev authored Feb 28, 2024
1 parent bcc1cd6 commit af98fed
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -355,6 +355,27 @@ You can deploy to GCP Cloud Run using the following command:
gcloud run deploy [your-service-name] --source . --port 8001 --allow-unauthenticated --region us-central1 --set-env-vars=OPENAI_API_KEY=your_key
```

### Deploy using Infrastructure as Code

#### Pulumi

You can deploy your LangServe server with [Pulumi](https://www.pulumi.com/) using your preferred general purpose language. Below are some quickstart
examples for deploying LangServe to different cloud providers.

These examples are a good starting point for your own infrastructure as code (IaC) projects. You can easily modify them to suit your needs.


| Cloud | Language | Repository | Quickstart |
|-------|------------|-----------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------|
| AWS | dotnet | https://github.com/pulumi/examples/aws-cs-langserve | [![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/aws-cs-langserve) |
| AWS | golang | https://github.com/pulumi/examples/aws-go-langserve | [![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/aws-go-langserve) |
| AWS | python | https://github.com/pulumi/examples/aws-py-langserve | [![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/aws-py-langserve) |
| AWS | typescript | https://github.com/pulumi/examples/aws-ts-langserve | [![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/aws-ts-langserve) |
| AWS | javascript | https://github.com/pulumi/examples/aws-js-langserve | [![Deploy](https://get.pulumi.com/new/button.svg)](https://app.pulumi.com/new?template=https://github.com/pulumi/examples/aws-js-langserve) |




### Community Contributed

#### Deploy to Railway
Expand Down

0 comments on commit af98fed

Please sign in to comment.