Skip to main content

Example Code to deploy LocalAI, Flowise, and Pulumi on AWS EKS

A TypeScript program to deploy a Kubernetes cluster on AWS

This example lives in the pulumi/examples repository. Check out just this directory to use it:

Get started with this example
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set aws-ts-localai-flowise
cd pulumi-examples/aws-ts-localai-flowise

Prerequisites#

How to deploy?#

If you run Pulumi for the first time, you will be asked to log in. Follow the instructions on the screen to login. You may need to create an account first, don’t worry it is free.

Step 1 - Clone the repository#

Terminal window
git clone https://github.com/pulumi/examples.git
cd examples/aws-ts-localai-flowise

Step 2 - Install the dependencies#

Terminal window
pulumi install

Step 3 - Login to AWS#

Terminal window
aws configure

Step 4 - Deploy the infrastructure#

Terminal window
pulumi up

Step 5 - Port forward the Flowise UI#

To retrieve the kubeconfig file, you can use the following command:

Terminal window
pulumi stack output kubeconfig --show-secrets > kubeconfig.yaml

As the program does not deploy a LoadBalancer, you need to port forward the UI to your local machine:

Terminal window
kubectl port-forward svc/flowise-ui 3000:3000

Related

The infrastructure as code platform for any cloud.