serverless-operations / serverless-apigateway-service-proxy

This Serverless Framewrok plugin supports the AWS service proxy integration feature of API Gateway.
260 stars 77 forks source link

X-AMZ-ACL Header is getting created in API Gateway for the Put or Post Request. #124

Open soumyajit-convosight opened 3 years ago

soumyajit-convosight commented 3 years ago

How to remove the creation of that header in integration request. It is failing the put request with Access Denied in Open API

arosnord commented 3 years ago

I have the same issue. @soumyajit-convosight did you solved this problem somehow?

arosnord commented 3 years ago

I have found how to solve this. Add 'integration.request.header.x-amz-acl': "'private'" to requestParameters: block

custom:
  apiGatewayServiceProxies:
    - s3:
        path: /s3
        method: post
        action: PutObject
        bucket:
          Ref: S3Bucket
        cors: true

        requestParameters:
          'integration.request.path.object': 'context.requestId'
          'integration.request.header.x-amz-acl': "'private'"
movsiienko commented 4 months ago

Thanks @arosnord, that works