Github action을 이용한 aws 배포 - 프론트 (2)

김혁준·2023년 6월 1일
0

1편 : https://velog.io/@rlagurwns112/Github-action%EC%9D%84-%EC%9D%B4%EC%9A%A9%ED%95%9C-aws-%EB%B0%B0%ED%8F%AC-%ED%94%84%EB%A1%A0%ED%8A%B8

https , 도메인 적용하기!

내가 갖고 있는 도메인은 drinkdrinkdrink.xyz이다.

이전 상태 :

S3 :  Block public access 꺼져있어야 githubaction가능+Bucket policy 설정되어있다

1.route53에서 도메인 생성 > 네임칩가서 route traffic(4개)을 네임서버에 복붙(가비아나 다른 사이트에도 네임서버 넣는곳 있음)

  1. Cloud Front :
    edit >
           Custom SSL certificate : 없으면 만들기,
             Alternate domain name (CNAME) : 보통 APEX로 설정함,
             Default root object 설정 : index.html
             Web Application Firewall 끄기
    Edit origin >

    Origin domain : s3 property에 the bucket의 endpoint ,
    Origin access : Origin access control settings로 설정, Origin access control : 없으면 새로 만들기,
    s3 Bucket policy : 안했으면 설정 (cf설정하고나서 추천하는 정책으로 설정)

  2. route53 :
    업로드중..
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, 수정되어있으면 성공!

0개의 댓글

관련 채용 정보