![image](https://private-user-images.githubusercontent.com/61778930/347752513-a9fed35e-3e25-4811-a359-362c62b3f8f7.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NzA0MzAsIm5iZiI6MTcyMzk3MDEzMCwicGF0aCI6Ii82MTc3ODkzMC8zNDc3NTI1MTMtYTlmZWQzNWUtM2UyNS00ODExLWEzNTktMzYyYzYyYjNmOGY3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA4MzUzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTdhNjRlMzQyMDEyNmI3YzdmYzgzOWE2NzU1ZWEyNzRjNjE4NGZlMDY5NTliNWRiYTFmMTc1ODEwOTJiMWI5NWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5rMXgBVKDCZfbIm3m0GEA7WF3VlUwhZuMPanwXcOiVs)
Claude model comparison mode | Business conversation transition mode |
---|---|
- ✅ Make sure you have the
cdk
installed in your environment. If you don't have cdk, follow the link and install CDK: https://docs.aws.amazon.com/ko_kr/cdk/v2/guide/getting_started.html
# To check if you have AWS CDK
cdk --version ## if you don't have cdk -- Follow the link above and install it.
- ✅ Make sure you have the aws credential information stored in
~.aws/credentials
.
# To check if you have credential info
vi ~/.aws/credentials
## if the file is empty, please add your credentials using the command below.
aws configure # and enter your REGION, AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY.
1. Enable Anthropic Claude model access on the Amazon Bedrock console
- How to add model access: Amazon Bedrock User Guide
- What to request: Haiku 3.0 and Sonnet 3.0 (+ Sonnet 3.5 if needed)
cdk bootstrap
cdk deploy ApiStack
# After deployment finished, the API Gateway Endpoint will be printed.
![image](https://private-user-images.githubusercontent.com/61778930/347765571-e5625420-169a-4a69-9f5e-30c01862b128.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NzA0MzAsIm5iZiI6MTcyMzk3MDEzMCwicGF0aCI6Ii82MTc3ODkzMC8zNDc3NjU1NzEtZTU2MjU0MjAtMTY5YS00YTY5LTlmNWUtMzBjMDE4NjJiMTI4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA4MzUzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTg3ZmZjNDQ4MjVjMjE3ZTYzNDljZjA2NDdiMzI0Y2YwZGVjNzQ4NDUwMmFhZjk0ZDQ1ZmZhOGUyODcxNGQzZWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.o96V6dg6PAtiEgeM8w4XdhGYnQb5bZJ1wgERDwHuwAk)
Copy the API Endpoint that came out as output in step2, find the INSERT_YOUR_API_GW_ENDPOINT
string in lib/WebStack/fe/index.html and replace it with the copied API URL.
![image](https://private-user-images.githubusercontent.com/61778930/348450703-54bb30f3-0258-4bb5-a1c5-1f534b46ee60.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NzA0MzAsIm5iZiI6MTcyMzk3MDEzMCwicGF0aCI6Ii82MTc3ODkzMC8zNDg0NTA3MDMtNTRiYjMwZjMtMDI1OC00YmI1LWExYzUtMWY1MzRiNDZlZTYwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA4MzUzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI1NmM1OTQwOTQwOWVlM2M3ZDZlMTZkZDJiMmY5NzQzZTU0ODcxOWJiZWU4ODllMjAzMzlhYjcyMzgxZTJjZGYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JlJOGS53Plvcep0p0WtT468KmFMgYKedeZwCGna1nLQ)
cdk bootstrap
cdk deploy WebStack
# After deployment finished, the Cloudfront URL will be printed.
![image](https://private-user-images.githubusercontent.com/61778930/347760168-80dc3c3b-cc26-4263-b250-715e668b98cc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5NzA0MzAsIm5iZiI6MTcyMzk3MDEzMCwicGF0aCI6Ii82MTc3ODkzMC8zNDc3NjAxNjgtODBkYzNjM2ItY2MyNi00MjYzLWIyNTAtNzE1ZTY2OGI5OGNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODE4VDA4MzUzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY3ZDJiYTBkYWNlZDcxYjlmZDdmNWYxYjZmMzZkM2Y3ZGUyNjc3ODcyODhlZGI2YmI4NWEzMTZkZTk1MmE5M2YmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.LFyUcwqWoYvTmvBbSnjfkOw10l7L2UKSVvcDtWrpo3g)