title: Why sam package publishes the artifacts to bucket?
body: <p>As part of packaging the SAM application, the application published to s3 bucket as shown below:</p>
  
  <p><code>sam package --template-file sam.yaml --s3-bucket mybucket --output-template-file output.yaml</code></p>
  
  <hr>
  
  <p>Why <code>sam package</code> provides <code>--s3-bucket</code> option? Is this mandatory option?</p>
  
  <p>What is the purpose of publishing artifacts to s3 bucket?</p>