I've been trying to create a method in API Gateway that drops the body of the incoming request into a file/object in an S3 bucket. But I want the method to create a new file each time (so a file with a new name) instead of overwriting the previous one. But I've been struggling to find a way to do it. Anyone has any suggestions/ideas? Something like a timestamp, or a sequence number (or both) to use as a variable in the Path override so that it would become the name of the s3 file. I looked at suggestions to use the X-Amzn-Trace-Id
but it doesn't seem to be available in Path override. Anything else I could try? Maybe something in Swagger? I want to achieve it using API Gateway (avoid using a lambda as an extra step) to keep our architecture from getting too complex. Thanks in advance!
相关问题
- How to refer to an external JSON file containing r
- How to generate 12 digit unique number in redshift
- Use awslogs with kubernetes 'natively'
- How do I hide routes I don't control from Serv
- Assume/switch role in aws toolkit for eclipse 2.0
相关文章
- swagger3.0,版本的接口都没有了
- Right way to deploy Rails + Puma + Postgres app to
- how many objects are returned by aws s3api list-ob
- AWS S3 in rails - how to set the s3_signature_vers
- Passthrough input to output in AWS Step Functions
- I cannot locate production log files on Elastic Be
- ImportError: cannot import name 'joblib' f
- PUT to S3 with presigned url gives 403 error
You can set the
X-Amzn-Trace-Id
as the method parameter, then map the parameter to the integration parameter on the path to S3 as the object name .Example: