langflow/scripts/aws/README.md
EC2 Default User 39e09ca066 add README
2023-12-01 06:39:23 +00:00

1.4 KiB

Deploy Langflow on AWS

In this tutorial, you will learn how to deploy langflow on AWS using CDK.

This tutorial assumes you have an AWS account and basic knowledge of AWS.

How to set up your environment and deploy langflow

  1. Open CloudShell.

  2. Run the following commands in Cloudshell:

git clone https://github.com/aws-samples/cloud9-setup-for-prototyping
cd cloud9-setup-for-prototyping
./bin/bootstrap
  1. When you see Done!, open cloud9-for-prototyping from Cloud9. make-cloud9

  2. Run the following command in the Cloud9 terminal.

git clone -b aws-cdk-dev2 https://github.com/kazuki306/langflow
cd langflow/scripts/aws
cp .env.example .env # Edit this file if you need environment settings
npm ci
cdk bootstrap
cdk deploy
  1. Access the URL displayed.
Outputs:
LangflowAppStack.NetworkURLXXXXXX = http://alb-XXXXXXXXXXX.elb.amazonaws.com

Cleanup

  1. Cloud9 で以下のコマンドを実行します。
cdk destroy
bash delete-ecr.sh
  1. Open CloudFormation, select aws-cloud9-cloud9-for-prototyping-XXXX and remove it. delete-cfn