프론트엔드

  1. 프론트엔드에서 마지막에 Finish&Get Deployment Tips는 어떤 역할을 하는 버튼인가요?

    image.png

  2. 왼쪽 사이드바 형태도 카드 형식으로, 메인 카드와 가까이 있는게 사용자 입장에서 눈이 좌우로 많이 움직이지 않아도 되어서 편해보입니다 (아래는 예시 화면)

    image.png

백엔드

Error

람다를 실행할 때 아래와 같은 에러가 발생했습니다:

botocore.errorfactory.AccessDeniedException: An error occurred (AccessDeniedException) when calling the InvokeModel operation: User: arn:aws:sts::273354645391:assumed-role/CodePromptAnalysis-role-d4milqhk/CodePromptAnalysis is not authorized to perform: bedrock:InvokeModel on resource: arn:aws:bedrock:ap-northeast-1::foundation-model/anthropic.claude-3-sonnet-20240229-v1:0 because no identity-based policy allows the bedrock:InvokeModel action

lambda 내부에서 bedrock을 호출할 때 에러가 발생했는데, ap-northeast-1에서 bedrock을 호출할 권한이 없다는 에러입니다.

그런데 람다 코드를 보면,

# ✅ Bedrock Runtime
session = boto3.session.Session(region_name="ap-northeast-2")
bedrock = session.client("bedrock-runtime", region_name="ap-northeast-2")

# ✅ Claude 3 Sonnet Inference Profile ARN 
MODEL_ID = "arn:aws:bedrock:ap-northeast-2:273354645391:inference-profile/apac.anthropic.claude-3-sonnet-20240229-v1:0"

이렇게 ap-northeast-2를 호출하고 있는 것을 알 수 있습니다.

그런데 왜 갑자기 호출이 ap-northeast-1로 가고있는걸까요?

정답은 아래의 공식문서에 있었습니다:

Increase throughput with cross-Region inference - Amazon Bedrock

AWS에서 베드락을 호출할 때 한국 리전에서 호출했더라도 다른 리전으로 호출이 라우팅될 수 있습니다.