# Using manually created AWS DMS Replication instance with terraform code

**URL:** <https://discuss.hashicorp.com/t/using-manually-created-aws-dms-replication-instance-with-terraform-code/41010>\
**Category:** Terraform\
**Tags:** hcp-terraform\
**Created:** [June 21, 2022, 12:10pm UTC](https://discuss.hashicorp.com/t/using-manually-created-aws-dms-replication-instance-with-terraform-code/41010 "2022-06-21T12:10:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jmasamy](https://sea2.discourse-cdn.com/hashicorp/user_avatar/discuss.hashicorp.com/jmasamy/32/24249_2.png) [@jmasamy](https://discuss.hashicorp.com/u/jmasamy)\
**Post date:** [June 21, 2022, 12:10pm UTC](https://discuss.hashicorp.com/t/using-manually-created-aws-dms-replication-instance-with-terraform-code/41010/1 "2022-06-21T12:10:54Z")

</div>

Hi,  
I am new to terraform, I am trying to create AWS DMS resources with Terraform  
first challenge was that I have AWS DMS Replication Instance that is manually created and I need to use it for creating new AWS DMS tasks.  
I have seen that data source is not supported for this resource so I tried importing it and succeeded but when I run terraform plan it fails on ARN of AWS DMS replication instance  
means that I cant use it in my AWS DMS task.tf file since aws dms replication instance not created by terraform  
bottom line my question is how can I use existing aws resources with new terraform code  
if it is by import what are the steps to do it?
