aws s3 정적 웹 배포 설정 [angular]

Charles·2021년 1월 11일
0

aws

목록 보기
1/6

s3에 angular를 배포했던 경험을 토대로 작성.

  1. 정적 웹사이트 호스팅

    spa인 angular에서는 index.html만 존재 하기 때문에 인덱스 문서, 오류 문서 모두 index.html로 설정

  2. 버킷 정책

{
    "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}}/*"
        }
    ]
}
profile
undefined 💁🏻‍♂️

0개의 댓글