route53 added
This commit is contained in:
parent
fb33f68bf6
commit
42bd8aff0d
1 changed files with 34 additions and 0 deletions
|
|
@ -250,3 +250,37 @@ resource "aws_route53_record" "dmarc_juntekim" {
|
|||
"v=DMARC1; p=none; rua=mailto:postmaster@juntekim.com; ruf=mailto:postmaster@juntekim.com; fo=1"
|
||||
]
|
||||
}
|
||||
|
||||
#### stripetoinvoice.com
|
||||
|
||||
# Create the Route 53 hosted zone for stripetoinvoice.com
|
||||
resource "aws_route53_zone" "stripetoinvoice" {
|
||||
name = "stripetoinvoice.com"
|
||||
}
|
||||
|
||||
# A record for stripetoinvoice.com pointing to the public IP
|
||||
resource "aws_route53_record" "a_stripetoinvoice" {
|
||||
name = "stripetoinvoice.com"
|
||||
type = "A"
|
||||
ttl = "300"
|
||||
records = [var.public_ip]
|
||||
zone_id = aws_route53_zone.stripetoinvoice.zone_id
|
||||
}
|
||||
|
||||
# A record for wildcard subdomains of stripetoinvoice.com pointing to the public IP
|
||||
resource "aws_route53_record" "a_wildcard_stripetoinvoice" {
|
||||
name = "*.stripetoinvoice.com"
|
||||
type = "A"
|
||||
ttl = "300"
|
||||
records = [var.public_ip]
|
||||
zone_id = aws_route53_zone.stripetoinvoice.zone_id
|
||||
}
|
||||
|
||||
# CNAME record for www.stripetoinvoice.com to redirect to the main domain
|
||||
resource "aws_route53_record" "cname_www_stripetoinvoice" {
|
||||
name = "www.stripetoinvoice.com"
|
||||
type = "CNAME"
|
||||
ttl = "300"
|
||||
records = ["stripetoinvoice.com"]
|
||||
zone_id = aws_route53_zone.stripetoinvoice.zone_id
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue