You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- 무신사는 MUSINSA TV 라는 유투브 채널을 운영중인데 다양한 동영상들이 있습니다. 대부분 길이가 10분 이상인 동영상들인데 숏폼이 유행하는 현재 트렌드에 맞게 이러한 동영상의 핵심만 요약해서 1분 내외의 짧은 동영상으로 바꾸어 줍니다.
19
+
20
+
21
+
## Architecture
22
+
Backend를 구성하는 아키텍처입니다. Frontend는 Streamlit을 사용하였습니다.
23
+
Frontend에서 API 호출을 통해 Backend에 구성된 Lambda를 호출하는 방식입니다.
24
+
25
+
Backend는 *ALB와 Lambda를 통해 Bedrock를 호출하는 부분* 과 *코드 변경에 따른 실시간 Lambda Function 업데이트를 위해 CodeCommit과 CodeBuild 등을 사용한 CI/CD*로 구성되어 있습니다.
4
26
5
27

6
28
7
29
## Prerequisites
8
-
-Make sure you have [AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html) installed and configured with an aws account you want to use.
9
-
-To build container image, [Docker Engine](https://docs.docker.com/engine/install/) must be installed.
30
+
-[AWS CLI](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2.html)가 설치되어 있고 사용하려는 계정으로 설정되어 있는지 확인합니다.
31
+
-컨테이너 이미지를 빌드하려면 [Docker Engine](https://docs.docker.com/engine/install/)이 설치되어 있어야 합니다. *Lambda 함수가 컨테이너 이미지를 사용하고 있습니다.*
10
32
11
33
### install cdk
12
34
```shell
@@ -22,9 +44,9 @@ export AWS_PROFILE=[The configuration profile for aws-cli]
22
44
## How to deploy
23
45
24
46
### Step 1. Create virtualenv
25
-
After cloning this git repository. You need to create virtualenv.
47
+
python을 사용하여 코드가 작성되었고 관련 라이브러리를 설치해야 하므로 python 가상 환경을 구성합니다.
Before running the cdk deploy command, make sure the Docker Engine is running in the background.
60
+
cdk deploy를 하기 전에 우선 Docker Engine이 실행 중인지 확인합니다. cdk deploy를 실행하면 기존에 빌드된 컨테이너 이미지가 없으면 자동으로 컨테이너 빌드를 수행합니다.
61
+
39
62
```shell
40
63
cdk deploy BedrockDemo
41
64
```
42
65
43
66
### Step 4. Set Environment Variables
44
-
After successfully deploying the cdk, there are two variables in the output. One is the DNS name of the ALB and the other is the name of the S3 bucket. Copy these and make them environment variables.
67
+
cdk를 성공적으로 배포하고 나면 Outputs에 *ALB의 DNS 이름* 과 *S3 버킷 이름*이 출력됩니다. 이를 복사하여 환경 변수로 만듭니다.
45
68
46
69

47
70
@@ -52,17 +75,18 @@ export BUCKET_NAME=[The name of the S3 bucket]
52
75
```
53
76
54
77
### Step 5. Run streamlit
78
+
frontUI 디렉토리로 이동하여 streamlit 을 실행시킵니다. streamlit 이 실행되면 자동으로 브라우저에 데모 페이지가 로딩됩니다.
55
79
```shell
56
80
cd frontUI
57
81
streamlit run app/Home.py
58
82
```
59
83
60
84

61
85
62
-
The browser will open a demo page if streamlit is running successfully.
86
+
로딩된 데모 페이지에서 5개의 데모를 확인할 수 있습니다.
63
87
64
88
## Clean up resources
65
-
If you've created anything by yourself, you'll need to delete it.
89
+
기본적으로 cdk destroy를 하면 모든 생성된 리소스가 삭제됩니다. 다만 S3 버킷은 수동으로 삭제해야 합니다.
0 commit comments