Hi, all,
I’ve got an aws_vpn_connection
resource defined and running, but terraform plan
complains about vgw_telemetry
because AWS bounced the VPN tunnels so the last_status_change
timestamp changed outside of Terraform’s control.
# module.myvpn_connection.aws_vpn_connection.vpn_connection has changed
~ resource "aws_vpn_connection" "vpn_connection" {
id = "<vpnid redacted>"
tags = {
"Name" = "MYVPN"
}
~ vgw_telemetry = [
- {
- accepted_route_count = 14
- certificate_arn = ""
- last_status_change = "2023-07-07T05:17:20Z"
- outside_ip_address = "a.b.c.d"
- status = "UP"
- status_message = "14 BGP ROUTES"
},
+ {
+ accepted_route_count = 14
+ certificate_arn = ""
+ last_status_change = "2023-07-25T03:36:31Z"
+ outside_ip_address = "e.f.g.h"
+ status = "UP"
+ status_message = "14 BGP ROUTES"
},
# (1 unchanged element hidden)
]
# (56 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
I tried using lifecycle/ignore_changes to ignore changes to the entire vgw_telemetry
block:
lifecycle {
ignore_changes = [
vgw_telemetry,
]
}
but Terraform still complains about last_status_timestamp
. Is there a way to ignore_changes for an entire block?