https://wlstmd.notion.site/Result-1b57ed89b6d18091a043d09403fb2569
진승 유의 Notion on Notion
한국에서 접근시 한국어 버전으로 라우팅

**March 13, 2025 11:31 PM (GMT+9)March 13, 2025 11:31 PM (GMT+9)March 13, 2025 11:31 PM (GMT+9)
이게 결과입니다

### **보셕 형님*March 13, 2025 11:32 PM (GMT+9)*March 13, 2025 11:32 PM (GMT+9)**
아하

### **공공의 진승 형님*March 13, 2025 11:32 PM (GMT+9)*March 13, 2025 11:32 PM (GMT+9)**
CloudFront Functions를 다국어 처리를 하면되용
**March 13, 2025 11:32 PM (GMT+9)March 13, 2025 11:32 PM (GMT+9)March 13, 2025 11:32 PM (GMT+9)
힌트는 헤더를 잘 쓰면 됩니당
**March 13, 2025 11:34 PM (GMT+9)March 13, 2025 11:34 PM (GMT+9)March 13, 2025 11:34 PM (GMT+9)
`요청할때 두 리전 모두 curl <CloudFront URL>/index.html 형태로 보내고
리다이렉션으로 한국에서는 아래와 같이 <CloudFront URL>/kr/index.html
리다이렉션으로 미국에서는 아래와 같이 <CloudFront URL>/en/index.html` March 13, 2025 11:34 PM (GMT+9)
**March 13, 2025 11:34 PM (GMT+9)March 13, 2025 11:34 PM (GMT+9)March 13, 2025 11:34 PM (GMT+9)
하면 되용
**March 13, 2025 11:37 PM (GMT+9)March 13, 2025 11:37 PM (GMT+9)March 13, 2025 11:37 PM (GMT+9)
`mkdir kr && mkdir en cat << EOF > index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>English Page</title> </head> <body> English Page </body> </html> EOF
cat << EOF > ./kr/index.html <!DOCTYPE html> <html lang="ko"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>한국 페이지</title> </head> <body> 한국 페이지 </body> </html> EOF
cat << EOF > ./en/index.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>English Page</title> </head> <body> English Page </body> </html> EOF`
**March 13, 2025 11:37 PM (GMT+9)March 13, 2025 11:37 PM (GMT+9)March 13, 2025 11:37 PM (GMT+9)
aws s3 cp ./index.html s3://skills-static-bucket aws s3 cp ./kr/index.html s3://skills-static-bucket/kr/index.html aws s3 cp ./en/index.html s3://skills-static-bucket/en/index.html March 13, 2025 11:38 PM (GMT+9)
**March 13, 2025 11:38 PM (GMT+9)March 13, 2025 11:38 PM (GMT+9)March 13, 2025 11:38 PM (GMT+9)
이거 쓰시면 됩니닷
**March 13, 2025 11:39 PM (GMT+9)March 13, 2025 11:39 PM (GMT+9)March 13, 2025 11:39 PM (GMT+9)
구현이는 하면서 Lambda Edge Functions랑 CloudFront Functions 차이점도 공부 하면 좋을 것 같아용

아키텍처는 안만들었고
**March 17, 2025 3:42 PM (GMT+9)March 17, 2025 3:42 PM (GMT+9)March 17, 2025 3:42 PM (GMT+9)
Network Policy를 사용하지 않고
**March 17, 2025 3:42 PM (GMT+9)March 17, 2025 3:42 PM (GMT+9)March 17, 2025 3:42 PM (GMT+9)
IMDS 에 대한 접근이 차단이 되게 구성해보세요