# Terraform - Adding a new resource instance and resoring terraform state

1. Suppose I crated an environment using Terraform script, and then I'd like to add another resource of the same type I already have. For example, I have 2 instances of my app VM and I'd like to add another one. What would be the way to do so?

2. Suppose I need to work on an environment which was not created using Terraform, or that was created by Terraform but was manually modified. How can I recreate or update the state of Terraform?

1. Either copy the existing resource and duplicate it with a different name/id, or set the count parameter on the existing resource to 2.