update readme

This commit is contained in:
EC2 Default User 2023-12-05 03:34:28 +00:00 committed by nsxshota
commit d888da74eb
5 changed files with 19 additions and 15 deletions

View file

@ -1,7 +1,9 @@
# Deploy Langflow on AWS
In this tutorial, you will learn how to deploy langflow on AWS using CDK.
**Duraration**: 30 minutes
## Introduction
In this tutorial, you will learn how to deploy langflow on AWS using AWS Cloud Development Kit (CDK).
This tutorial assumes you have an AWS account and basic knowledge of AWS.
The architecture of the application to be created:
@ -13,14 +15,14 @@ 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.
# How to set up your environment and deploy langflow
1. Open [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:
```shell
git clone https://github.com/aws-samples/cloud9-setup-for-prototyping
cd cloud9-setup-for-prototyping
./bin/bootstrap
```
1. When you see `Done!` in Cloudshell, open `cloud9-for-prototyping` from [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)
1. Run the following command in the Cloud9 terminal.
```shell
@ -42,8 +44,7 @@ If you just want to deploy resources, you do not need in-depth knowledge of each
# Cleanup
1. Run the following command in the Cloud9 terminal.
```shell
cdk destroy
bash delete-ecr.sh
bash delete-resources.sh
```
1. Open [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)