Skip to main content

AWS Simple Queue Service

With this integration you can publish and receive messages in Amazon Web Services Simple Queue Service.

TagsQueueMessage BrokerSaas

Credential configuration

To configure this credential, you need the Access Key ID and the Secret Access Key of the Programatic access user you want to use. Make sure this user has the required permissions to access Simple Queue Service to work properly. If you need to create the user, follow the instructions provided here.

In the extra options field, you can include any of the parameters found here.

Here is an example of a filled credential configuration form in YepCode:

AWS Simple Queue Service snippets available in YepCode editor


The title is the triggering text for YepCode to autocomplete the script.


New integration from credential
const awsSqsClient = yepcode.integration.awsSqs("credential-slug");
New integration from plain authentication data
const { SQSClient } = require("@aws-sdk/client-sqs");

const awsSqsClient = new SQSClient({
credentials: {
accessKeyId: "accessKeyId",
secretAccessKey: "secretAccessKey",

List Queues

List queues
const { ListQueuesCommand } = require("@aws-sdk/client-sqs");

const listQueuesCommand = new ListQueuesCommand({});

const listQueuesResponse = await awsSqsClient.send(listQueuesCommand);

Send Message

Send message
const { SendMessageCommand } = require("@aws-sdk/client-sqs");

const sendMessageCommand = new SendMessageCommand({
QueueUrl: "the-queue-url",
MessageBody: "the-message-body"

const sendMessageResponse = await awsSqsClient.send(sendMessageCommand);

Receive Messages

Receive messages
const { ReceiveMessageCommand } = require("@aws-sdk/client-sqs");

const receiveMessageCommand = new ReceiveMessageCommand({
QueueUrl: "the-queue-url"

const receiveMessageResponse = await awsSqsClient.send(receiveMessageCommand);