S3 Websites

-S3 can host static websites and have them accessible on the www

-The website URL will be :

-<bucket-name>.s3-website-<AWS-region>.amazonaws.com

OR

-<bucket-name>.s3-website.<AWS-region>.amazonaws.com

-If you get a 403(Forbidden) error, make sure the bucket policy allows public reads

S3는 정적 웹사이트 호스팅 가능하고 WWW에서 접근이 가능하도록 허용한다.

URL도 비교적 간단하다.

403 에러가 있을 경우 버킷 정책에서 public reads를 허용했는지 확인한다.

1)Block public access 설정을 비활성화로 바꿔준다

2)Bucket policy에서 공개 엑세스를 허용하는 버킷 정책을 작성한다.

+ Recent posts