Because ip addresses are not CNAME records

This commit is contained in:
Alexander Hosking 2019-06-07 15:24:02 -04:00
parent eaef7aadfe
commit 64a42263c7
3 changed files with 33 additions and 6 deletions

View File

@ -56,7 +56,7 @@ resource "aws_route53_record" "lab_ahoskingit" {
resource "aws_route53_record" "logs_ahoskingit" {
zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
name = "logs.ahoskingit.com"
type = "CNAME"
type = "A"
ttl = "5"
records = ["${var.home_ip}"]
}

View File

@ -1,7 +1,7 @@
{
"version": 3,
"terraform_version": "0.11.11",
"serial": 25,
"serial": 26,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"modules": [
{
@ -853,17 +853,17 @@
"aws_route53_zone.ahoskingit"
],
"primary": {
"id": "Z2HTSYFXB5HXD9_logs.ahoskingit.com_CNAME",
"id": "Z2HTSYFXB5HXD9_logs.ahoskingit.com_A",
"attributes": {
"fqdn": "logs.ahoskingit.com",
"health_check_id": "",
"id": "Z2HTSYFXB5HXD9_logs.ahoskingit.com_CNAME",
"id": "Z2HTSYFXB5HXD9_logs.ahoskingit.com_A",
"name": "logs.ahoskingit.com",
"records.#": "1",
"records.1816504638": "99.240.201.161",
"set_identifier": "",
"ttl": "5",
"type": "CNAME",
"type": "A",
"zone_id": "Z2HTSYFXB5HXD9"
},
"meta": {

View File

@ -1,7 +1,7 @@
{
"version": 3,
"terraform_version": "0.11.11",
"serial": 25,
"serial": 26,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"modules": [
{
@ -847,6 +847,33 @@
"deposed": [],
"provider": "provider.aws"
},
"aws_route53_record.logs_ahoskingit": {
"type": "aws_route53_record",
"depends_on": [
"aws_route53_zone.ahoskingit"
],
"primary": {
"id": "Z2HTSYFXB5HXD9_logs.ahoskingit.com_CNAME",
"attributes": {
"fqdn": "logs.ahoskingit.com",
"health_check_id": "",
"id": "Z2HTSYFXB5HXD9_logs.ahoskingit.com_CNAME",
"name": "logs.ahoskingit.com",
"records.#": "1",
"records.1816504638": "99.240.201.161",
"set_identifier": "",
"ttl": "5",
"type": "CNAME",
"zone_id": "Z2HTSYFXB5HXD9"
},
"meta": {
"schema_version": "2"
},
"tainted": false
},
"deposed": [],
"provider": "provider.aws"
},
"aws_route53_record.monitors_ahoskingit": {
"type": "aws_route53_record",
"depends_on": [