프리티어가 끝나서 새로운 계정을 만들어서 기존 도메인 이전을 했다.
도메인 이전은 AWS CLI로 할 수 있다
자세한 내용은 아래에서 확인할 수 있다.
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/route53domains/transfer-domain-to-another-aws-account.html
우선 구 계정에서 aws accout id를 확인해야 되는데,
웹 콘솔에서 계정 이름 하위 메뉴에서 확인할 수 있고
aws cli을 이용하면
aws sts get-caller-identity
으로 확인할 수 있다.
우선 기존 계정으로 route53domains transfer-domain-to-another-aws-account를 실행시킨다. 매개변수 –domain-name에는 도메인 명, –account-id에는 위에서 알아낸 AccountID를 입력한다.
aws route53domains transfer-domain-to-another-aws-account --domain-name 도메인명 --account-id AccountID
출력 결과로 아래와 같이 나오는데
{
"OperationId": "xxx",
"Password": "xxx"
}
OperationId와 Password는 새로운 계정에서 도메인 이전 승일 때 필요하니 잘 메모해두자.
이제 새로운 계정에서 route53domains accept-domain-transfer-from-another-aws-account을 통해 도메인 이전 승인을 해야한다.
aws route53domains accept-domain-transfer-from-another-aws-account --domain-name 도메인명 --password 위 명령어에서 얻은 패스워드
위와 같이 입력하면 아래와 같은 출력 결과를 볼 수 있다.
{
"OperationId": "xxxxxxxx"
}
이제 route 53에서 확인을 하면 되는데, 바로 되지는 않고 대략 3~5분 정도가 소요된 것 같다.
route 53 대시보드에 알림 섹션에서 도메인 이전이 된 것을 확인할 수 있다.
이전 시, 기존 서버에서 작성한 호스팅 영역 정보는 자동으로 이전 되지 않는다.
aws cli을 사용해 route53 list-resource-record-sets으로 리스트를 받아와서 마이그레이션 할 수 있다. 이 내용은 차후에 다시 포스팅 할 예정.