title: 'specified bucket does not exist ' error - S3 bucket with Policy disallow upload from particular IP
body: <p>I'm attempting to create an S3 bucket with a policy that disallows uploading anything from a particular public IP. It's written in YAML. Below is the code. Unfortunately I get this error:</p>
  <p>The specified bucket does not exist. The bucket name sections match. Any idea what I am missing?</p>
  <pre><code>Resources:
  
    TestS3Bucket:
      Type: AWS::S3::Bucket
      Properties:
        BucketName: test4.test.bucket
  
    TestS3BucketPolicy:
      Type: AWS::S3::BucketPolicy
      Properties:
        Bucket: TestS3Bucket
        PolicyDocument:
          Version: 2012-10-17
          Statement: 
            Sid: SingleIPAllow
            Effect: Deny
            Principal: &quot;*&quot;
            Action: s3:PutObject
            Resource: arn:aws:s3:::test4.test.bucket
            Condition: 
              NotIpAddress: 
                aws:SourceIp: &quot;***.***.***.***&quot;
  </code></pre>