-
Notifications
You must be signed in to change notification settings - Fork 24
Description
First of all, thank you very much for this tool, it makes the process of automating the TF Move much easier.
The "Problem" we currently have is the following.
We are running the tool, in order to detect the changes in iaC modules that we have altered, however, our iac plan, gives us a total of 41 Destroys and 42 Creates, which translates to 41 terraform state moves.
Plan: 42 to add, 9 to change, 41 to destroy.
We identified that it is for some parameters that it cannot move, nevertheless, we have created a Script that automatically detects those parameters for which it cannot move the resource, and by means of that script, we constructed the ignore with which the tfautomv would be executed, that is to say, something like this: tfautomv --ignore="everything:aws_instance:credit_specification.#" --ignore="everything: aws_rds_cluster: availability_zones.#"
However, it is not doing the process to ignore them, so we always get a lower number in the state moves.
33 moves written to moves.tf
.
Additionally, it was evidenced that when having 1,2,3,...(or higher) Matches in the resources, it omits the creation of state move
│ 3 matches for module.backend.module.apigw_keys.aws_api_gateway_usage_plan_key.this[1] (delete) in current directory
│ │ module.backend.module.apigw_keys.aws_api_gateway_usage_plan_key.this["plan-test-1"] (create) in current directory
│ │ module.backend.module.apigw_keys.aws_api_gateway_usage_plan_key.this["plan-test-2"] (create) in current directory
│ │ module.backend.module.apigw_keys.aws_api_gateway_usage_plan_key.this["plan-test-3"] (create) in current directory
.
We would like to know, if it is possible that from the functionality of the same tool, you can add a feature, through which you can perform a complete ignore on all resources that are being detected as changing, because in fairly large infrastructures, can run only 50% in the terraform state move.
I appreciate your support and response.