Terraform keeps applying the same changes over and over


I am adding routes using modules. After every “terraform apply”, it asks to apply the same changes. I click yes, however it asks again after every “terraform plan/apply” to re-apply the same changes.

module “rt_to_tgw” {
source = “…/_modules/route_entries”
rt_id = module.rt_table.route_table_id
destination_cidr = “###.###.###.###/32”
gateway = “tgw_id_here_123456789”

I realize the above code is not enough context, pls advise, I can provide more info.

Terraform version? and cloud provider version?

TF v0.12
Cloud Provider is AWS. How can I send you the version?

terraform --version ?

Terraform v0.12.9

  • provider.aws v2.34.0

could you try with the latest Terraform? v0.12.17 as of today and the latest AWS provider.
you could go through the CHANGELOG of each to see if anything specific to your problem was there.