Skip to content

Commit

Permalink
add hack to ignore tunnel options
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Oct 24, 2022
1 parent 57b9927 commit a7a3519
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions vpn-transit-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,27 @@ resource "aws_vpn_connection" "vpn" {
}
}

# this is here because if you change the tunnel (trigger a reset) through the console, it will populate
# it with all the values possible. This ignores it. It is not a good practice.
lifecycle {
ignore_changes = [
tunnel1_ike_versions,
tunnel1_phase1_dh_group_numbers,
tunnel1_phase1_encryption_algorithms,
tunnel1_phase1_integrity_algorithms,
tunnel1_phase2_dh_group_numbers,
tunnel1_phase2_encryption_algorithms,
tunnel1_phase2_integrity_algorithms,
tunnel2_ike_versions,
tunnel2_phase1_dh_group_numbers,
tunnel2_phase1_encryption_algorithms,
tunnel2_phase1_integrity_algorithms,
tunnel2_phase2_dh_group_numbers,
tunnel2_phase2_encryption_algorithms,
tunnel2_phase2_integrity_algorithms,
]
}

tags = merge(
local.base_tags,
var.tags,
Expand Down

0 comments on commit a7a3519

Please sign in to comment.