- Implementing Cloud Design Patterns for AWS(Second Edition)
- Sean Keery Clive Harber Marcus Young
- 304字
- 2021-06-24 15:11:57
Top-level domain
The first thing most users of your product will encounter is your address or Uniform Resource Indicator (URI). We will be using the cloudpatterns.uk domain for the examples in this book. A URL for this domain would look like https://my.cloudpatterns.uk. If you don't have a domain name, now is a good time to create one. There is no API to do this, but you can do it in the UI—this is part of the raison d'être for Route53 (https://console.aws.amazon.com/route53/home).
Click the Get started now button and then the Register Domain button on the subsequent page:

You can also transfer your existing domain to AWS if you already have one:

Search for an available domain:

Fill out your contact information and read and agree to the terms of service, then purchase your domain:

It took about ten minutes for me to get my registration confirmation.
Amazon will create your root-hosted zone by default. Let's add a subdomain with Terraform. Copy your main.tf file to a new folder called Chapter3 and run terraform init:
# grab the existing cloudpatterns-zone in Route53
data "aws_route53_zone" "main" {
name = "cloudpatterns.uk."
}
resource "aws_route53_zone" "book" {
name = "book.cloudpatterns.uk"
tags {
Environment = "book"
}
}
resource "aws_route53_record" "book-ns" {
zone_id = "${data.aws_route53_zone.main.zone_id}"
name = "book.cloudpatterns.uk"
type = "NS"
ttl = "30"
records = [
"${aws_route53_zone.book.name_servers.0}",
"${aws_route53_zone.book.name_servers.1}",
"${aws_route53_zone.book.name_servers.2}",
"${aws_route53_zone.book.name_servers.3}",
]
}
Create your Terraform plan and apply it. You'll see your new zones in the AWS console:

Click on one to see the records it created:

We now are ready to create our globally available product.
- Modern Web Testing with TestCafe
- Windows Server 2012 Hyper-V:Deploying the Hyper-V Enterprise Server Virtualization Platform
- 網(wǎng)絡(luò)操作系統(tǒng):Windows Server 2003管理與應(yīng)用
- Windows Server 2012網(wǎng)絡(luò)操作系統(tǒng)企業(yè)應(yīng)用案例詳解
- 嵌入式實(shí)時(shí)操作系統(tǒng):RT-Thread設(shè)計(jì)與實(shí)現(xiàn)
- 無(wú)蘋果不生活 The New iPad隨身寶典
- Red Hat Enterprise Linux 6.4網(wǎng)絡(luò)操作系統(tǒng)詳解
- Hadoop Real-World Solutions Cookbook
- Ubuntu Linux操作系統(tǒng)實(shí)用教程
- Docker容器技術(shù)與應(yīng)用
- Less Web Development Essentials
- 程序員必讀經(jīng)典(算法基礎(chǔ)+計(jì)算機(jī)系統(tǒng))
- Android Telephony原理解析與開(kāi)發(fā)指南
- 自研操作系統(tǒng):DIM-SUM設(shè)計(jì)與實(shí)現(xiàn)
- iOS 7應(yīng)用開(kāi)發(fā)實(shí)戰(zhàn)詳解