title: upload binary from api gateway to S3 bucket
body: <p>i was trying to create a rest api which can take zip file as input (PUT requst) and store that on S3.</p>
  
  <p>I'm following the tutorial on <a href="http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-content-encodings-examples-image-s3.html" rel="nofollow noreferrer">http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-content-encodings-examples-image-s3.html</a> </p>
  
  <p>I'm getting 500 error ad the cloudwatch logs are as follows</p>
  
  <blockquote>
    <p>Verifying Usage Plan for request:
    c2140431-1a10-11e7-9f32-0df3853848fe.  API Key: API Stage:
    xjjd186a30/rd </p>
    
    <p>API Key authorized because method 'PUT /s3' does not require API Key.</p>
    
    <p>Request will not contribute to throttle or quota limits </p>
    
    <p>Usage Plan check succeeded for API Key and API Stage xjjd186a30/rd </p>
    
    <p>Starting execution for request: c2140431-1a10-11e7-9f32-0df3853848fe </p>
    
    <p>HTTP Method: PUT, Resource Path: /s3 </p>
    
    <p>Successfully completed execution</p>
    
    <p>Method completed with status: 500</p>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/iZewS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iZewS.png" alt="enter image description here"></a></p>
  
  <p>when i try the api from post man i get </p>
  
  <blockquote>
    <p>
    <Code>AccessDenied</Code>Access
    DeniedF55D45C185A5BF11HXopfmxAxGNvmdi7PRp4c1j/wPYmGVTrkKbGXfZwofLOn7TRBPs3uFjer/2UCIktynKtGeNU1Xw=</p>
  </blockquote>
  
  <p>my roles i have given AmazonS3FullAccess permission and have assigned the role to api gateway settings and the integration request.</p>
  
  <p>can anyone help please</p>