-
Notifications
You must be signed in to change notification settings - Fork 9.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: DMS Task needs to be paused before applying DMS changes #27661
Comments
Community NoteVoting for Prioritization
Volunteering to Work on This Issue
|
I took a quick look at this and I'm not sure it should be labeled Whoever picks this up would need to identify all replication tasks that are connected to the endpoint and loop through them to check the status of the task, stop the task, modify the endpoint, and resume/restart all tasks afterwards This can be used as a reference from replication_task.go The caveat is all the replication task info is available in that context but not in endpoint.go. I think it would require implementing another function in find.go similar to FindReplicationTaskByID that can query by endpoint arn returning a list of tasks |
I agree that this would be a great issue for someone to pickup but maybe not a first issue. I like the plan you outline @bennylu2. If you're feeling up to it, I think it'll work well. |
This functionality has been released in v5.25.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Terraform Core Version
1.2.6
AWS Provider Version
4.38.0
Affected Resource(s)
Expected Behavior
Following this pr, I expected DMS tasks to be automatically stopped & resumed after a Terraform DMS change when
start_replication_task
is set to true in theaws_dms_replication_task
resource.Actual Behavior
This is the case when modifications are made to the
aws_dms_replication_task
resource, i.e updating thelob_max_size
in thereplication_task_settings
parameter. However, when I made changes to theaws_dms_endpoint
resource (which is tied to the task), I received the error below stating that the task needs to be paused before the changes can be applied.It seems like the change to add
start_replication_task
from this pr only addressed automating stoping/resuming DMS tasks when changes are made to resourceaws_dms_replication_task
.Relevant Error/Panic Output Snippet
Terraform Configuration Files
IAM policy
Changing
max_file_size
belowTo This
Steps to Reproduce
aws_dms_endpoint
endpointDebug Output
No response
Panic Output
No response
Important Factoids
No response
References
No response
Would you like to implement a fix?
No response
The text was updated successfully, but these errors were encountered: