title: Error "error: Duplicate resource URN" when writing same name file to two S3 buckets
body: <p>I'm trying to create two separate buckets in a stack, but when I try and write a file to the second bucket with the same name as any file in the first I get an error
  <code>error: Duplicate resource URN 'urn:pulumi:dev::quickstart::aws:s3/bucketObject:BucketObject::index.html'; try giving it a unique name</code></p>
  <p>The code below demonstrates the problem.</p>
  <p>Obviously there's no clash as far as AWS is concerned, but is there a different 'name' I should be defining to prevent Pulumi creating what appears to be a duplicate key?</p>
  <pre class="lang-cs prettyprint-override"><code>using Pulumi;
  using Pulumi.Aws.S3;
  
  class MyStack : Stack
  {
      public MyStack()
      {
          // Create an AWS resource (S3 Bucket)
          var bucket1 = new Bucket(&quot;my-bucket&quot;);
  
          var bucketObject1 = new BucketObject(&quot;index.html&quot;, new BucketObjectArgs {
              Bucket = bucket1.BucketName,
              Content = &quot;HTML in 1&quot;
          });
  
          var bucket2 = new Bucket(&quot;my-bucket2&quot;);
  
          var bucketObject2 = new BucketObject(&quot;index.html&quot;, new BucketObjectArgs {
              Bucket = bucket2.BucketName,
              Content = &quot;HTML in 2&quot;
          });
      }
  }
  </code></pre>