From 0a040af991e7a285a809bfd85a3e2385d4b635eb Mon Sep 17 00:00:00 2001 From: matttrach Date: Wed, 16 Oct 2024 13:35:44 -0500 Subject: [PATCH] fix: ignore address changes in domain Signed-off-by: matttrach --- flake.lock | 6 +++--- modules/domain/main.tf | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 376f488..5f69caa 100644 --- a/flake.lock +++ b/flake.lock @@ -20,11 +20,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1728538411, - "narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=", + "lastModified": 1728863046, + "narHash": "sha256-DZBO2465PL5V89e8hFSJewyH4QbCPpW3ssws7ckT/0A=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221", + "rev": "d4f247e89f6e10120f911e2e2d2254a050d0f732", "type": "github" }, "original": { diff --git a/modules/domain/main.tf b/modules/domain/main.tf index 61f5ed5..17f5343 100644 --- a/modules/domain/main.tf +++ b/modules/domain/main.tf @@ -42,6 +42,11 @@ resource "aws_route53_record" "ipv4" { ttl = 30 records = local.ips allow_overwrite = true + lifecycle { + ignore_changes = [ + records, + ] + } } resource "aws_route53_record" "ipv6" { @@ -55,6 +60,11 @@ resource "aws_route53_record" "ipv6" { ttl = 30 records = local.ips allow_overwrite = true + lifecycle { + ignore_changes = [ + records, + ] + } } # cert generation