title: Rename instead of delete resource?
body: <p>Is there any way to avoid resource deletion when reorganizing/renaming resources? Example: when I first implemented CloudFront Terraform it was an independent sub directory in my project, later I switched to using it as a module in. my root Terraform config but this caused Terraform to want to delete the old CloudFront distribution and create a new one:</p>
  
  <pre><code>Terraform will perform the following actions:
      - aws_cloudfront_distribution.main_site_distribution
      + module.cloudfront.aws_cloudfront_distribution.main_site_distribution
  </code></pre>
  
  <p>Is there any way to force Terraform to rename the resource instead?</p>