can any one help i have configured aws api gateway with post method using aws service proxy integration type, then i have configured the resource as s3 and gave bucket details as sub domain in action type i specefied PutObject finally created arn and used that,after all doing this i am able create a random folder in bucket but unable to upload a file which is json type
4
votes
1 Answers
14
votes
- Created a resource in the following order (root)/s3/{key}
- select service proxy
- select the desired region
- select the desired aws service(s3 in my case)
- In subdomain give bucket name
- In path override give the parameter as {key}(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/developerguide/getting-started-aws-proxy.html
- In url path parameters add "key" and mapped from as method.request.path.key
- Then deploy