From 4cd4a64826b4cd3a9b2bb7886e097c4a7fe5e20c Mon Sep 17 00:00:00 2001 From: EC2 Default User Date: Fri, 1 Dec 2023 06:49:12 +0000 Subject: [PATCH] add README --- scripts/aws/README.md | 49 +++++++++++++++++++------------------------ 1 file changed, 22 insertions(+), 27 deletions(-) diff --git a/scripts/aws/README.md b/scripts/aws/README.md index 91124be26..0c4636489 100644 --- a/scripts/aws/README.md +++ b/scripts/aws/README.md @@ -6,39 +6,34 @@ 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](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 -``` - + ```shell + 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](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. -```shell -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 -``` + ```shell + 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. -```shell -Outputs: -LangflowAppStack.NetworkURLXXXXXX = http://alb-XXXXXXXXXXX.elb.amazonaws.com -``` + ```shell + Outputs: + LangflowAppStack.NetworkURLXXXXXX = http://alb-XXXXXXXXXXX.elb.amazonaws.com + ``` # Cleanup 1. Run the following command in the `Cloud9` terminal. -```shell -cdk destroy -bash delete-ecr.sh -``` - + ```shell + cdk destroy + bash delete-ecr.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. ![delete-cfn](./img/langflow-cfn.png) \ No newline at end of file