Interview Prep/Terraform/Rapid-Fire Commands

Move a resource into a module without destroying it?

IntermediateProductionRapid-Fire Commands
Answer
terraform state mv aws_s3_bucket.logs module.logging.aws_s3_bucket.this

Or add a moved block and plan; both only edit state. Verify with a clean plan.

All Terraform questions

More on Rapid-Fire Commands