Manage Terraform state. Follow these tutorials to import existing infrastructure and manipulate state storage.
Import existing infrastructure into Terraform. In this tutorial, you will use Terraform import to manage an existing Docker container and learn important considerations to keep in mind when importing infrastructure into Terraform.
Migrate an existing state file to a Terraform Cloud workspace
Manipulate local state with the Terraform CLI. Create an EC2 instance and security group; then use the state subcommand to move a resource to another state file. Remove, taint, and re-import resources to manage state files and reconcile drift in your infrastructure.
Provision an S3 bucket and bucket objects on AWS with Terraform, and incrementally apply changes to them using Terraform's Resource Targeting feature. Target individual resources, modules, and collections of resources for changes and destruction. Explore how Terraform handles dependencies when you use resource targeting.