From 64a42263c702a8e52d0ebcf48f0621b4dac9375e Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Fri, 7 Jun 2019 15:24:02 -0400 Subject: [PATCH] Because ip addresses are not CNAME records --- ahoskingit/terraform/dns_ahoskingit.tf | 2 +- ahoskingit/terraform/terraform.tfstate | 8 ++--- ahoskingit/terraform/terraform.tfstate.backup | 29 ++++++++++++++++++- 3 files changed, 33 insertions(+), 6 deletions(-) diff --git a/ahoskingit/terraform/dns_ahoskingit.tf b/ahoskingit/terraform/dns_ahoskingit.tf index edc2222..79d7b3d 100644 --- a/ahoskingit/terraform/dns_ahoskingit.tf +++ b/ahoskingit/terraform/dns_ahoskingit.tf @@ -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}"] } diff --git a/ahoskingit/terraform/terraform.tfstate b/ahoskingit/terraform/terraform.tfstate index dcf0976..78a10ad 100644 --- a/ahoskingit/terraform/terraform.tfstate +++ b/ahoskingit/terraform/terraform.tfstate @@ -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": { diff --git a/ahoskingit/terraform/terraform.tfstate.backup b/ahoskingit/terraform/terraform.tfstate.backup index 9006fc3..044111f 100755 --- a/ahoskingit/terraform/terraform.tfstate.backup +++ b/ahoskingit/terraform/terraform.tfstate.backup @@ -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": [