Upload object to s3 using aws api gateway service proxy / API Gateway Proxy for S3 with subdirectories
This is guideline how to create the AWS API Gateway Assumption: S3 bucket name: "us-east-1-dev" and folders: --> light/ --> test_1/ --> pdfs/ Create the REST API Created a resource proxy select service proxy Resource Name*: proxy Resource Path*: {proxy+} Click Create API select the option: HTTP proxy Endpoint URL: (key anything) e.g: https://testing.com/{proxy} click Save Next, choose "Integration Request" Integration type: AWS service select the desired region select the desired aws service(s3 in my case) In subdomain give bucket name (e.g: xxxx- us-east-1-dev) HTTP method: select "PUT" if you want to upload a object. "GET" if you want to get the object. Here is "PUT" In path override give Path override: {proxy} (because to pass the bucketname dynamically) finally for api gateway service proxy we need to add the arn for detail explanation on creation of arn follow the document http://docs.aws.amazon.com/apigateway/latest...