s3에 angular를 배포했던 경험을 토대로 작성.
정적 웹사이트 호스팅
spa인 angular에서는 index.html만 존재 하기 때문에 인덱스 문서, 오류 문서 모두 index.html로 설정
버킷 정책
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "Allow Public Access to All Objects",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::{{s3_arn_name}}/*"
}
]
}