Apply saved plan terraform
Apply exactly the plan generated earlier (no re-prompts)
terraform apply prod.tfplan
more terraform
all 43 commands →
Show resource in state
terraform state show 'aws_instance.web[0]'
Move resource in state
terraform state mv 'aws_instance.web' 'module.app.aws_instance.web'
Import existing resource
terraform import 'aws_s3_bucket.mybucket' my-existing-bucket
Taint resource for recreation
terraform taint 'aws_instance.web[0]'
Remove resource from state
terraform state rm 'aws_instance.legacy'