Hi,
I am trying to automate a scenario where I need to generate load on Pods which are hosted on AWS. They require authentication with “AWS Signature Version 4”.
I am not sure how to send a request with “AWS Signature Version 4” via Gatling Tried to google it but found nothing.
AWS Signature Version 4 takes these values.
1.) AccessKey
2.) SecretKey
3.) AWS Region
4.) Service Name
Returns
“X-Amz-Date”:
“Authorization”: "AWS4-HMAC-SHA256 Credential=AccessKey/us-east-1/apigateway/aws4_request, SignedHeaders=content-length;content-type;host;x-amz-date, Signature=“somevalue”,
Does giving all the values like this will help?
.exec(http("")
.post(“url”)
.header(“Content-Type”, “application/x-www-form-urlencoded”)
.formParam(“AccessKey”, “${AccessKey}”)
.formParam(“SecretKey”, “${SecretKey}”)
.formParam(“AWS Region”, “”)
.formParam(“Service Name”, “”)
.check(regex(“Signature”).find.exists.saveAs(“Token_ID”))
.check(status.is(200)))