Closed jogendrakumarjangid closed 6 months ago
This is just down to the DMS API - you can see from these two lines:
~ source_endpoint_arn = "arn:aws:dms:us-east-2:xxxxxxxxxxx:endpoint:xyz" # forces replacement -> (known after apply) # forces replacement
...
~ target_endpoint_arn = "arn:aws:dms:us-east-2:xxxx:endpoint:xyz" # forces replacement -> (known after apply) # forces replacement
Any time you change a source or target endpoint for a task, the API requires the task to be replaced.
This is just down to the DMS API - you can see from these two lines:
~ source_endpoint_arn = "arn:aws:dms:us-east-2:xxxxxxxxxxx:endpoint:xyz" # forces replacement -> (known after apply) # forces replacement ... ~ target_endpoint_arn = "arn:aws:dms:us-east-2:xxxx:endpoint:xyz" # forces replacement -> (known after apply) # forces replacement
Any time you change a source or target endpoint for a task, the API requires the task to be replaced.
In our case we have't make any changes to current tasks. Just added a new endpoint but still in That case all the current tasks force to replace.
+1
+1
+1
This is actually also happening to me without modifying the DMS task endpoint, just by adding a new endpoint to var.endpoints
It seems like the arn
of the endpoints is not known during the plan
. Maybe a depends_on
can solve the problem: see:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
Description
We are using the module to create the DMS instance, endpoint, and tasks. if we are adding a new endpoint for a new task requirement. At the time of applying the changes, the endpoint will be create but all the current tasks also recreating. There is no change in task configuration. we are just adding a new endpoint.
Versions
Module version [Required]: v2.2.0
Terragrunt version 0.57.0
Reproduction Code [Required]
Steps to reproduce the behavior:
Steps
Expected behavior
The new endpoint only need to be created.
Actual behavior
New endpoint are creating but same time we can see the all the tasks are recreating.
Terminal Output Screenshot(s)
Additional context