Import Terraform Configuration
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 State to Terraform Cloud
Keep your state secure and share it with collaborators by migrating it to Terraform Cloud. Initialize the Terraform Cloud backend and migrate the state file for existing infrastructure without destroying or modifying the infrastructure.
Manage Resources in Terraform State
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, replace, 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.
Interpret and fix a Terraform configuration with common configuration language errors and deploy an EC2 instance with security groups in AWS. Learn best practices for logging application errors and reporting bugs.
Manage Resource Drift
Create an AWS instance and security group. Manually change the instance to create drift in your Terraform state file. Reconcile your state drift and import your resources while avoiding downtime.
Manage Resource Lifecycle
Create an AWS instance and security group. Update your configuration with lifecycle management blocks to prevent resource deletion, create resources before destroying them, and ignore changes to specific resource attributes.
Version Remote State with the Terraform Cloud API
Deploy an EC2 instance to a Terraform Cloud workspace and use the Terraform API to interact with and update state.