5 min read
When we change the location of any terraform module we need to run terraform init again to be able to pick up the right version:
$ terraform plan Acquiring state lock. This may take a few moments... Releasing state lock. This may take a few moments... ╷ │ Error: Module source has changed │ │ on main.tf line 17, in module "terraform-module": │ 17: source = "git::ssh://git@github.com/pet2cattle/terraform-module.git?ref=1.0.2" │ │ The source address was changed since this module was installed. Run "terraform init" to install all modules required by this configuration. ╵
26/04/2022
Read more...