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" { resource "aws_route53_record" "logs_ahoskingit" {
zone_id = "${aws_route53_zone.ahoskingit.zone_id}" zone_id = "${aws_route53_zone.ahoskingit.zone_id}"
name = "logs.ahoskingit.com" name = "logs.ahoskingit.com"
type = "CNAME" type = "A"
ttl = "5" ttl = "5"
records = ["${var.home_ip}"] records = ["${var.home_ip}"]
} }

View File

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

View File

@ -1,7 +1,7 @@
{ {
"version": 3, "version": 3,
"terraform_version": "0.11.11", "terraform_version": "0.11.11",
"serial": 25, "serial": 26,
"lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5", "lineage": "db7d87ff-3078-47ed-a0a9-91749a2dbba5",
"modules": [ "modules": [
{ {
@ -847,6 +847,33 @@
"deposed": [], "deposed": [],
"provider": "provider.aws" "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": { "aws_route53_record.monitors_ahoskingit": {
"type": "aws_route53_record", "type": "aws_route53_record",
"depends_on": [ "depends_on": [