langflow/scripts/aws
EC2 Default User 60c49f625d add README
2023-12-01 06:52:58 +00:00
..
bin 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
img add README 2023-12-01 06:46:08 +00:00
lib add Cfn Output & Readme 2023-12-01 12:09:31 +09:00
test 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
.env.example 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
.gitignore 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
.npmignore 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
cdk.json 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
delete-docker-images.sh 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
delete-ecr.sh add README 2023-12-01 06:39:23 +00:00
jest.config.js 本家の踏襲のため、Dockerfileを変更 2023-11-30 16:47:30 +09:00
package-lock.json install dotenv 2023-11-30 17:14:10 +09:00
package.json install dotenv 2023-11-30 17:14:10 +09:00
README.ja.md add README 2023-12-01 06:39:23 +00:00
README.md add README 2023-12-01 06:52:58 +00:00

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
    
  3. When you see Done! in Cloudshell, open cloud9-for-prototyping from Cloud9. make-cloud9
  4. 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
    
  5. Access the URL displayed.
    Outputs:
    LangflowAppStack.NetworkURLXXXXXX = http://alb-XXXXXXXXXXX.elb.amazonaws.com
    

Cleanup

  1. Run the following command in the Cloud9 terminal.
    cdk destroy
    bash delete-ecr.sh
    
  2. Open CloudFormation, select aws-cloud9-cloud9-for-prototyping-XXXX and delete it. delete-cfn