Import existing resources into Terraform state | Terraform | HashiCorp Developer
Learn how to import existing resources into Terraform state so that you can manage them as code