title: Get AWS S3 Bucket Object Using PowerShell DSC
body: <p>Using PowerShell DSC, I'm trying to read an object from within an AWS S3 bucket but I get the following error:</p>
  
  <p><strong>Unable to load stored credentials for profile = [default]</strong></p>
  
  <p>I have tried using the -ProfileLocation parameter however that then throw the error "A parameter cannot be found that matches parameter name 'ProfileLocation'". My code is as follows:</p>
  
  <pre><code>Read-S3Object -ProfileName default BucketName $bucket -Key $key -File $file
  </code></pre>