| .. | ||
| bin | ||
| img | ||
| lib | ||
| test | ||
| .env.example | ||
| .gitignore | ||
| .npmignore | ||
| cdk.json | ||
| delete-docker-images.sh | ||
| delete-ecr.sh | ||
| jest.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.ja.md | ||
| README.md | ||
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
-
Open CloudShell.
-
Run the following commands in Cloudshell:
git clone https://github.com/aws-samples/cloud9-setup-for-prototyping
cd cloud9-setup-for-prototyping
./bin/bootstrap
-
When you see
Done!, opencloud9-for-prototypingfrom Cloud9.
-
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
- Access the URL displayed.
Outputs:
LangflowAppStack.NetworkURLXXXXXX = http://alb-XXXXXXXXXXX.elb.amazonaws.com
Cleanup
- Run the following command in the
Cloud9terminal.
cdk destroy
bash delete-ecr.sh
- Open CloudFormation, select
aws-cloud9-cloud9-for-prototyping-XXXXand delete it.