skip to Main Content

I have a requirement to push message in AWS SQS using JMeter or LoadRunner.

I have gone through AWS Query API this link which will create a Query API, but it requires AWS Access Key ID which is restricted in my organization.

Is there any other way or using role-based authentication we can send message in SQS?

3

Answers


  1. There is a plugin available with JMeter plugins manager called awsmeter

    Repo: https://github.com/JoseLuisSR/awsmeter

    You can clone, modify according to your needs

    For LoadRunner: You can write your own login using the provided sdk from the AWS

    Login or Signup to reply.
  2. Well, I think the request in any case needs to be authenticated somehow. If HTTP Request sampler along with AWS Signature doesn’t fit your needs you can consider using JSR223 Sampler with Groovy language for sending the request.

    Example code (copied and pasted from here):

    SqsClient sqsClient = SqsClient.builder()
        .region(Region.US_WEST_2)
        .credentialsProvider(ProfileCredentialsProvider.create())
        .build();
    sendMessage(sqsClient, queueName, message);
    sqsClient.close();
    

    Again if ProfileCredentialsProvider is not something you can use (however I fail to see why) you can choose any other or come up with your own.

    Login or Signup to reply.
  3. So, to paraphrase my understanding. You want to use Amazon SQS service, but you do not have the access key so you are looking for a security workaround to use the queue service. Is this correct?

    Have you considered a local installation (or EC2 installation) of RabbitMQ?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search