"Still has a non-empty state after apply" error on Terraform

Problem

Error appears when typing terraform apply:

Error: orphan resource module.create-compute.aws_launch_configuration.resource-lc still has a non-empty state after apply; this is a bug  in  Terraform 

Main cause

Just a Terraform bug.

Solution

Remove the state file from the resource in question

terraform state rm <resource.name>

In that case it would be:

terraform state rm module.create-compute.aws_launch_configuration.resource-lc

Reference source here.