Performing a s3 upload request

Hi,

I would like to upload a file into a s3 bucket from a simulation.

A s3 upload can be done with a HTTP PUT request but it requires to build a signature,
which is a sha1 hmac of some inputs including the current time.

For instance in bash + curl it gives:

https://gist.github.com/chrismdp/6c6b6c825b07f680e710

what is the right way to do this from Gatling ?

I could use an external command (invoking aws s3 cp) following this:

https://stackoverflow.com/questions/39708326/how-can-i-exec-shell-scripts-from-within-a-gatling-simulation

but I want to have the s3 upload reported as request.

Thanks for your help

Regards

ben

Hi,

I have a first working solution using a bash script to compute the signature, the upload is done as a normal PUT request

https://gist.github.com/bdelbosc/1c35c69827b764682d0927aab9c8cf9f

Regards

ben

https://gatling.io/docs/2.3/http/http_request/?highlight=signaturecalculator#signature-calculator

Hi,

you could use AWScala for this:
https://github.com/seratch/AWScala#amazon-simple-storage-service-amazon-s3

Cheers,
Adam