Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
20211209_JAWS-UG_CLI専門支部_239R_LT資料
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
tsumita
December 09, 2021
Technology
980
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
20211209_JAWS-UG_CLI専門支部_239R_LT資料
20211209_JAWS-UG_CLI専門支部_239R_LT資料
tsumita
December 09, 2021
More Decks by tsumita
See All by tsumita
AWSさんから1400万円請求された件
tsumita
3
8.8k
20241120_JAWS_東京_ランチタイムLT#17_AWS認定全冠の先へ
tsumita
3
960
20241031_AWS_生成AIハッカソン_GenMuck
tsumita
0
320
20240906_JAWS_Yamanashi_#1_leap_beyond_the_AWS_all_certifications
tsumita
2
770
20230906_CDKJAWS_WhyCDK
tsumita
0
140
20230826_SecurityJAWS_NWFW_DNSFW
tsumita
3
600
20230315_JAWS-UG_朝会_43_LT資料
tsumita
1
630
20230117_JAWS-UG_朝会_41_LT資料
tsumita
0
920
Comparing latency among availability zones
tsumita
0
1.2k
Other Decks in Technology
See All in Technology
DMM.com 購入改善推進チーム におけるCodeRabbitを用いた レビューフロー改善の一例
ysknsid25
2
590
GuardrailからGovernanceへ~AIエージェント運用の次の課題~
sbspsy
2
270
キャリアの中で本を作る / Making a Book During Your Career
ak1210
0
130
cccccc
moznion
0
1.9k
AIDLC_ヤフーショッピングの取り組み
lycorptech_jp
PRO
0
600
KiCAD講習会②
tutcreators
0
110
Keeping applications secure by evolving OAuth 2.0 and OpenID Connect
ahus1
PRO
1
160
型は壁、Rustでもバグを直すな、表現できなくせよ
nwiizo
13
2k
AI時代の EM への処方箋
staka121
PRO
0
130
Amazon EVS で VCF 9.0 / 9.1 のサポート開始まとめ
mtoyoda
0
290
ボーイスカウトルールでメモリやスキルを改善しよう
azukiazusa1
1
290
インフラ寄りSREでも 開発に踏み出せる〜境界を越えてユーザー体験に向き合いたい〜
sansantech
PRO
2
3.5k
Featured
See All Featured
From Legacy to Launchpad: Building Startup-Ready Communities
dugsong
0
260
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.3k
Ecommerce SEO: The Keys for Success Now & Beyond - #SERPConf2024
aleyda
1
2.1k
Raft: Consensus for Rubyists
vanstee
141
7.6k
<Decoding/> the Language of Devs - We Love SEO 2024
nikkihalliwell
1
270
Making the Leap to Tech Lead
cromwellryan
135
10k
Hiding What from Whom? A Critical Review of the History of Programming languages for Music
tomoyanonymous
3
910
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Fantastic passwords and where to find them - at NoRuKo
philnash
52
3.8k
Why You Should Never Use an ORM
jnunemaker
PRO
61
9.9k
Large-scale JavaScript Application Architecture
addyosmani
515
110k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2k
Transcript
AWSアカウント間のドメイン移管で詰まった点 JAWS-UG CLI専門支部 #239R 2021.12.09
自己紹介 積田 優生 (Tsumita Yuki) Twitter / @tsumita7 2021 APN
AWS Top Engineer 2021 APN ALL AWS Certifications Engineer 好きなAWSサービス AWS Support Amazon EventBridge AWS Fargate
本日お話しすること • ホストゾーンとは? • ドメイン名とは? • AWSアカウント間のドメイン移管で詰まった点 • まとめ
ホストゾーンとは? What is a hosted-zone?
ホストゾーン ホストゾーンはレコードのコンテナであり、レコードには”example.com”などの特定のドメインとそのサブドメイン (hoge.example.com)のトラフィックをどのようにルーティングするか等の情報が含まれている。 Route53では「ホストゾーン=ドメインの名前」となる。 参考: AWS公式ドキュメント (ホストゾーンの使用) https://docs.aws.amazon.com/ja_jp/Route53/latest/DeveloperGuide/hosted-zones-working-with.html Route 53
example.com ホストゾーン example.com. 60 IN A 93.184.216.34 example.com. 60 IN NS a.iana-servers.net. ・・・ ・・・ hogehoge.test ホストゾーン hogehoge.test. 60 IN A 198.51.100.1 hogehoge.test. 60 IN NS a.hoge-serv.test. ・・・ takoneko.test ホストゾーン takoneko.test. 60 IN A 203.0.113.1 takoneko.test. 60 IN NS a.tako-serv.test. ・・・ • レコード Route53ではA, NS, CNAMEなど13種類のレコードタイプをサポート • ホストゾーン ホストゾーンは以下2種類が存在する • パブリックホストゾーン インターネット上のドメインのレコードを管理するコンテナ • プライベートホストゾーン VPC内などプライベートネットワーク内のドメインのレコードを管理するコンテナ ドメイン名 タイプ
ドメイン名とは? What is a domain-name?
ドメイン名 ドメイン名はドメイン名空間内のリソースを簡単に認識できる名前。 例えば、”example.com”はドメイン名である。 ルート(.) com jp co example example ・・・
・・・ ・・・・・・ hoge ドメイン名空間 参考: RFC (ドメイン名:概念と機能) https://jprs.jp/tech/material/rfc/RFC1034-ja.txt • ルート(.) ドメイン名空間はツリー構造となっており、ルートの直下はトップレベ ルドメイン(TLD)と呼ばれ、節は親子関係にある。 • example.com. 上位のcomドメインから委任された(払い出された)ドメイン。 委任されたドメインの配下にサブドメインを作成することもできる。 トップレベルドメイン (TLD) 親子関係
AWSアカウント間のドメイン移管で詰まった点 Points that troubled me about transferring domain between AWS
accounts.
AWSアカウント間のドメイン移管で詰まった点 AWS CLI(v2)でドメイン移管コマンドを実行する際に”--region=us-east-1”を付与していなかった。 そのため、AWS CLIのデフォルトプロファイルに従い、該当のエンドポイントが存在しない”ap-northeast-1”に 向けてCLIコマンドが発行され、「Could not connect to the
endpoint ~」というエラーが返却された。 参考: AWS公式FAQ (AWS CLIを使用して、あるAWSアカウントから別のAWSアカウントに Amazon Route 53 ドメインを移管する方法を教えてください) https://aws.amazon.com/jp/premiumsupport/knowledge-center/route-53-transfer-domain-other-account/ サービスエンドポイント route53domains.us-east-1.amazonaws.com example.com ホストゾーン example.com. 60 IN A 93.184.216.34 example.com. 60 IN NS a.iana-servers.net. ・・・ AWSアカウントABC (ドメイン移管元) example.com ドメイン AWSアカウントXYZ (ドメイン移管先) ドメインの移管 - ドメイン登録者の情報 - 有効期限 - ドメインに紐づくNameServerの情報 etc.. 移管元CLIコマンド:$ aws route53domains transfer-domain-to-another-aws-account --domain-name `移管ドメイン` --account-id `移管先AWSアカウントID` --region=us-east-1 移管先CLIコマンド:$ aws route53domains accept-domain-transfer-from-another-aws-account --domain-name `移管ドメイン` --password ‘`移管元で出力されたパスワード`' --region=us-east-1 移管対象ドメイン ドメイン移管しただけでは、 ホストゾーンは移行されない! ドメインのみアカウントXYZに 移管し、アカウントABCのホス トゾーン情報を継続利用する ことも可能。
まとめ Conclusion.
まとめ • ドメイン移管のサービスエンドポイントは”us-east-1”のみに存在している • https://docs.aws.amazon.com/ja_jp/general/latest/gr/aws-general.pdf#aws-service-information • ドメイン移管をしただけではホストゾーンは移行されない • https://docs.aws.amazon.com/ja_jp/Route53/latest/DeveloperGuide/domain-transfer-between-aws-accounts.html •
ドメインとホストゾーンを別々のAWSアカウントで管理することも可能 • 例示で利用するIPアドレスやドメインはRFCで定義されているものを利用 • https://toe.bbtower.co.jp/20160331/132/
ご清聴ありがとうございました Thank you for your attention and time.