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,
- Select a Collection, on
hoveror onthree dot click, an icon to create a request will appear. - Click on the icon will open a dialog box.
- Provide label and save to create a request.
- Navigate to the created request and select it.
- Select REALTIME format from the formats
REST, ISO, REALTIME. - Choose SQS as the method from the method dropdown.
- Provide the necessary data like
Endpoint, Content Type, Message Body etc.to configure the request. - Navigate to the Authorization tab and configure AWS credentials (Access Key ID, Secret Access Key, Region).
- Click Save button to save the request.
- 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
| Field | Description | Example |
|---|---|---|
| Access Key ID | AWS IAM access key ID | AKIAIOSFODNN7EXAMPLE |
| Secret Access Key | AWS IAM secret access key | wJalrXUtnFEMI/K7MDENG/... |
| Region | AWS region | us-east-1, eu-west-1 |
Configuration Fields
Required Fields
| Field | Description | Example |
|---|---|---|
| Method | Select SQS | SQS |
| Endpoint | SQS Queue URL | https://sqs.us-east-1.amazonaws.com/123456789012/my-queue |
| Content Type | Message format | application/json or text/plain |
| Message Body | Content to send | JSON or text content |
Troubleshooting
| Issue | Possible Cause | Solution |
|---|---|---|
| SQS access denied | Missing IAM permissions | Ensure IAM user has sqs:SendMessage permission |
| Invalid AWS region | Wrong region specified | Verify 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