title: Terraform - Upload file to S3 on every apply
body: <p>I need to upload a folder to S3 Bucket. But when I apply for the first time. It just uploads. But I have two problems here:</p>
  
  <ol>
  <li>uploaded version outputs as null. I would expect some version_id like 1, 2, 3</li>
  <li>When running <code>terraform apply</code> again, it says <code>Apply complete! Resources: 0 added, 0 changed, 0 destroyed</code>. I would expect to upload all the times when I run <code>terraform apply</code> and create a new version.</li>
  </ol>
  
  <p>What am I doing wrong? Here is my Terraform config:</p>
  
  <pre><code>resource "aws_s3_bucket" "my_bucket" {
    bucket = "my_bucket_name"
  
    versioning {
      enabled = true
    }
  }
  
  resource "aws_s3_bucket_object" "file_upload" {
    bucket = "my_bucket"
    key    = "my_bucket_key"
    source = "my_files.zip"
  }
  
  output "my_bucket_file_version" {
    value = "${aws_s3_bucket_object.file_upload.version_id}"
  }
  </code></pre>