title: Configure retention_policy for gcp storage bucket using terraform
body: <p>I am trying to configure my google storage bucket to have a retention policy of 1 day. Anything older than a day should get deleted from the bucket.</p>
  <p>I've added the following policy to my gcp bucket using terraform last week. When I go to gcp console it still shows files which are older than a day.</p>
  <pre><code>resource &quot;google_storage_bucket” &quot;test_bucket_name” {
    name          = &quot;test-backups&quot;
    location      = &quot;US&quot;
    force_destroy = false
  
  retention_policy {
    retention_period = 86400
  }
  </code></pre>
  <p>I want to know if I am missing any other configuration options. Thanks for your help!</p>