title: How can I create a s3 bucket subdirectory (Serverless)?
body: <p>When I try to create a subdirectory on my <code>serverless.yml</code>, I get the following error:</p>
  
  <pre><code>An error occurred: S3Bucket - Bucket name should not contain '/'.
  </code></pre>
  
  <p>Here’s the code:</p>
  
  <pre><code>resources:
   Resources:
     S3Bucket:
       Type: AWS::S3::Bucket
       Properties:
         BucketName: "bucketname/sub"
  </code></pre>
  
  <p>How can I create bucket subdirectories through <code>serverless.yml</code>?</p>