-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Modifying a dms replication task type should taint resource #18450
Comments
Hi @pancochea , thank you for raising this issue! looking at the AWS documentation, looks like we need to be stopping the task before performing any modifications (https://docs.aws.amazon.com/dms/latest/APIReference/API_ModifyReplicationTask.html). we don't currently do so; instead we directly call |
Thank you @pancochea for linking the issue! Noting this also relates to: #2236 |
Stopping the task is one part of the problem, which was solved by a PR of mine. But I think this issue still stands. AWS won't allow the task type to be modified even if the task is stopped. I think we need to modify the logic to destroy the task if this parameter is changed. |
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label. If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. 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. |
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Modified configuration:
Expected Behavior
The resource type is changed.
Actual Behavior
An error raises stating that the resource type cannot be modified at this moment:
Error: InvalidResourceStateFault: Replication Task, excluding logging severity task settings, cannot be modified while it is running state
Steps to Reproduce
terraform apply
terraform plan
will state that the resource type will be changedterraform apply
failsImportant Factoids
Changing the replication type of an existing should destroy and recreate the resource. From the GUI and the api this parameter cannot be modified.
The aws-cli states that using the modify-replication-task command is able to perform this change, but running it raises the same error (as expected), so it could be an error from the aws API, or a combination of the current replication task type and the new target type.
References
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/dms/modify-replication-task.html
The text was updated successfully, but these errors were encountered: