Skip to content

Instantly share code, notes, and snippets.

@dabio
Last active August 20, 2019 07:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dabio/524161c69c771ca3b3c5fa3ea1739a4e to your computer and use it in GitHub Desktop.
Save dabio/524161c69c771ca3b3c5fa3ea1739a4e to your computer and use it in GitHub Desktop.
provider "aws" {
region = "eu-central-1"
}
resource "aws_route53_zone" "main" {
name = "dab.io"
}
resource "aws_route53_record" "naked" {
zone_id = "${aws_route53_zone.main.zone_id}"
name = ""
type = "A"
ttl = "3600"
records = [
"185.199.108.153",
"185.199.109.153",
"185.199.110.153",
"185.199.111.153",
]
}
resource "aws_route53_record" "www" {
zone_id = "${aws_route53_zone.main.zone_id}"
name = "www"
type = "CNAME"
ttl = "86400"
records = ["dabio.github.com"]
}
resource "aws_route53_record" "jsonmax" {
zone_id = "${aws_route53_zone.main.zone_id}"
name = "jsonmax"
type = "CNAME"
ttl = "86400"
records = ["dabio.github.com"]
}
resource "aws_route53_record" "txt" {
zone_id = "${aws_route53_zone.main.zone_id}"
name = ""
type = "TXT"
ttl = "3600"
records = [
"keybase-site-verification=IymNCOeLMGlp-pylzx3BPijnYaNd0yb2U68oAOCgsx8"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment