1. Packages
  2. AWS Classic
  3. How-to Guides
  4. Example Code to deploy LocalAI, Flowise, and Pulumi on AWS EKS

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

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

aws logo

Try AWS Native preview for resources not in the classic version.

AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    View Code

    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

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

    Step 2 - Install the dependencies

    pulumi install
    

    Step 3 - Login to AWS

    aws configure
    

    Step 4 - Deploy the infrastructure

    pulumi up
    

    Step 5 - Port forward the Flowise UI

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

    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:

    kubectl port-forward svc/flowise-ui 3000:3000
    
    aws logo

    Try AWS Native preview for resources not in the classic version.

    AWS Classic v6.40.0 published on Wednesday, Jun 12, 2024 by Pulumi