Fix typo in README.md

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-12-07 14:05:42 -03:00
commit 4e9ef4c831

View file

@ -1,8 +1,9 @@
# Deploy Langflow on AWS # Deploy Langflow on AWS
**Duraration**: 30 minutes **Duration**: 30 minutes
## Introduction ## Introduction
In this tutorial, you will learn how to deploy langflow on AWS using [AWS Cloud Development Kit](https://aws.amazon.com/cdk/?nc2=type_a) (CDK). In this tutorial, you will learn how to deploy langflow on AWS using [AWS Cloud Development Kit](https://aws.amazon.com/cdk/?nc2=type_a) (CDK).
This tutorial assumes you have an AWS account and basic knowledge of AWS. This tutorial assumes you have an AWS account and basic knowledge of AWS.
@ -15,36 +16,38 @@ The Fargate task is divided into a frontend and a backend, which communicate thr
If you just want to deploy resources, you do not need in-depth knowledge of each of the above services. If you just want to deploy resources, you do not need in-depth knowledge of each of the above services.
# How to set up your environment and deploy langflow # How to set up your environment and deploy langflow
1. Open [AWS CloudShell](https://us-east-1.console.aws.amazon.com/cloudshell/home?region=us-east-1). 1. Open [AWS CloudShell](https://us-east-1.console.aws.amazon.com/cloudshell/home?region=us-east-1).
1. Run the following commands in Cloudshell: 1. Run the following commands in Cloudshell:
```shell ```shell
git clone https://github.com/aws-samples/cloud9-setup-for-prototyping git clone https://github.com/aws-samples/cloud9-setup-for-prototyping
cd cloud9-setup-for-prototyping cd cloud9-setup-for-prototyping
./bin/bootstrap ./bin/bootstrap
``` ```
1. When you see `Done!` in Cloudshell, open `cloud9-for-prototyping` from [AWS Cloud9](https://us-east-1.console.aws.amazon.com/cloud9control/home?region=us-east-1#/). 1. When you see `Done!` in Cloudshell, open `cloud9-for-prototyping` from [AWS Cloud9](https://us-east-1.console.aws.amazon.com/cloud9control/home?region=us-east-1#/).
![make-cloud9](./img/langflow-cloud9-en.png) ![make-cloud9](./img/langflow-cloud9-en.png)
1. Run the following command in the Cloud9 terminal. 1. Run the following command in the Cloud9 terminal.
```shell ```shell
git clone -b aws-cdk-dev2 https://github.com/kazuki306/langflow git clone -b aws-cdk-dev2 https://github.com/kazuki306/langflow
cd langflow/scripts/aws cd langflow/scripts/aws
cp .env.example .env # Edit this file if you need environment settings cp .env.example .env # Edit this file if you need environment settings
npm ci npm ci
cdk bootstrap cdk bootstrap
cdk deploy cdk deploy
``` ```
1. Access the URL displayed. 1. Access the URL displayed.
```shell ```shell
Outputs: Outputs:
LangflowAppStack.NetworkURLXXXXXX = http://alb-XXXXXXXXXXX.elb.amazonaws.com LangflowAppStack.NetworkURLXXXXXX = http://alb-XXXXXXXXXXX.elb.amazonaws.com
``` ```
1. Enter your user name and password to sign in. If you have not set a user name and password in your `.env` file, the user name will be set to `admin` and the password to `123456`. 1. Enter your user name and password to sign in. If you have not set a user name and password in your `.env` file, the user name will be set to `admin` and the password to `123456`.
![signin-langflow](./img/langflow-signin.png) ![signin-langflow](./img/langflow-signin.png)
# Cleanup # Cleanup
1. Run the following command in the Cloud9 terminal. 1. Run the following command in the Cloud9 terminal.
```shell ```shell
bash delete-resources.sh bash delete-resources.sh
``` ```
1. Open [AWS CloudFormation](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/getting-started), select `aws-cloud9-cloud9-for-prototyping-XXXX` and delete it. 1. Open [AWS CloudFormation](https://us-east-1.console.aws.amazon.com/cloudformation/home?region=us-east-1#/getting-started), select `aws-cloud9-cloud9-for-prototyping-XXXX` and delete it.
![delete-cfn](./img/langflow-cfn.png) ![delete-cfn](./img/langflow-cfn.png)