title: How can we use serverless.yml to create an AWS S3 bucket and add a file to it?
body: <p>I'm wondering if it's possible to leverage <code>serverless.yml</code> to create a bucket and add a specific file to it during the deploy process of serverless-framework.</p>
  
  <p>So far, I've been able to add the S3 resource that creates the bucket, but not sure how to add a specific file.</p>
  
  <pre><code>resources:
    Resources:
      UploadBucket:
        Type: AWS::S3::Bucket
        Properties:
          BucketName: ${self:custom.s3.bucket}
          AccessControl: Private
          CorsConfiguration:
            CorsRules:
            - AllowedMethods:
              - GET
              - PUT
              - POST
              - HEAD
              AllowedOrigins:
              - "*"
              AllowedHeaders:
              - "*"
  </code></pre>
  
  <p>Not sure if it's possible, or how to leverage the <code>serverless.yml</code> to upload a default file during the deploy process if it's not there yet.</p>