AWS SQS

Amazon Simple Queue Service (SQS) is a fully managed message queuing service that enables you to decouple and scale microservices, distributed systems, and serverless applications. Prutan supports sending messages to SQS queues using AWS IAM credentials.

Creating a SQS Request

To create an SQS request,

  1. Select a Collection, on hover or on three dot click, an icon to create a request will appear.
  2. Click on the icon will open a dialog box.
  3. Provide label and save to create a request.
  4. Navigate to the created request and select it.
  5. Select REALTIME format from the formats REST, ISO, REALTIME.
  6. Choose SQS as the method from the method dropdown.
  7. Provide the necessary data like Endpoint, Content Type, Message Body etc. to configure the request.
  8. Navigate to the Authorization tab and configure AWS credentials (Access Key ID, Secret Access Key, Region).
  9. Click Save button to save the request.
  10. Click Publish button to publish the message to SQS queue.

Authentication Configuration

AWS SQS uses AWS Identity and Access Management (IAM) credentials for authentication.

Required Credentials

FieldDescriptionExample
Access Key IDAWS IAM access key IDAKIAIOSFODNN7EXAMPLE
Secret Access KeyAWS IAM secret access keywJalrXUtnFEMI/K7MDENG/...
RegionAWS regionus-east-1, eu-west-1

Configuration Fields

Required Fields

FieldDescriptionExample
MethodSelect SQSSQS
EndpointSQS Queue URLhttps://sqs.us-east-1.amazonaws.com/123456789012/my-queue
Content TypeMessage formatapplication/json or text/plain
Message BodyContent to sendJSON or text content

Troubleshooting

IssuePossible CauseSolution
SQS access deniedMissing IAM permissionsEnsure IAM user has sqs:SendMessage permission
Invalid AWS regionWrong region specifiedVerify queue URL matches the region

Best Practices

  • Never commit AWS credentials to version control
  • Use IAM roles instead of static credentials when possible
  • Implement least-privilege IAM policies
  • Rotate credentials regularly
  • Consider using AWS STS for temporary credentials