https , 도메인 적용하기!
내가 갖고 있는 도메인은 drinkdrinkdrink.xyz이다.
이전 상태 :
S3 : Block public access 꺼져있어야 githubaction가능+Bucket policy 설정되어있다
1.route53에서 도메인 생성 > 네임칩가서 route traffic(4개)을 네임서버에 복붙(가비아나 다른 사이트에도 네임서버 넣는곳 있음)
Edit origin >Custom SSL certificate : 없으면 만들기, Alternate domain name (CNAME) : 보통 APEX로 설정함, Default root object 설정 : index.html Web Application Firewall 끄기
Origin domain : s3 property에 the bucket의 endpoint ,
Origin access : Origin access control settings로 설정, Origin access control : 없으면 새로 만들기,
s3 Bucket policy : 안했으면 설정 (cf설정하고나서 추천하는 정책으로 설정)
create record가서 Record name : 빈칸(apex 주기) Record type : A alias 켜기, route traffic to : Alias to CloudFront distribution 설정 An alias to a CloudFront distribution and ~. : cloud front에서 설정해준 Alternate domain name(cf에서 설정해줬으면 떠야댐)
마지막으로 vscode 수정 > push > Record name(drinkdrinkdrink.xyz) > https, 수정되어있으면 성공!