英文:
Need to push message in AWS SQS using JMETER or LoadRunner (role based authentication)
问题
我有在AWS SQS中使用JMeter或LoadRunner推送消息的需求。
我已经阅读了这个AWS查询API的链接,它将创建一个查询API,但它需要AWS Access Key ID,而在我的组织中受到限制。
是否有其他方式或者我们可以使用基于角色的身份验证发送SQS消息?
英文:
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?
答案1
得分: 1
有一个在 JMeter 插件管理器中可用的插件叫做 awsmeter
。
仓库链接: https://github.com/JoseLuisSR/awsmeter
您可以克隆,根据您的需求进行修改。
对于 LoadRunner:您可以使用 AWS 提供的 SDK 自己编写登录。
英文:
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
答案2
得分: 1
好的,我理解了。
英文:
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.
答案3
得分: 1
您想使用Amazon SQS服务,但没有访问密钥,因此正在寻找一种安全的解决方法来使用队列服务,这理解正确吗?
您是否考虑过本地安装(或在EC2上安装)RabbitMQ?
英文:
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?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论