AWS Fundamentals Logo
AWS Fundamentals
AWS::SQS::Queue

SQS Queue

The AWS::SQS::Queue resource creates an SQS standard or FIFO queue. Keep the following caveats in mind: + If you don't specify the FifoQueue property, SQS creates a standard queue. You can't change the queue type after you create it and you can't convert an existing standard queue into a FIFO queue. You must either create a new FIFO queue for your application or delete your existing standard queue and recreate it as a FIFO queue. For more information, see [Moving from a standard...

Properties

16 configurable properties. Click a row to see details.

Filter:
PropertyTypeFlags
ContentBasedDeduplication
boolean
DeduplicationScope
string
DelaySeconds
integer
FifoQueue
boolean
Create-only
FifoThroughputLimit
string
KmsDataKeyReusePeriodSeconds
integer
KmsMasterKeyId
string
MaximumMessageSize
integer
MessageRetentionPeriod
integer
QueueName
string
Create-only
ReceiveMessageWaitTimeSeconds
integer
RedriveAllowPolicy
objectstring
RedrivePolicy
objectstring
SqsManagedSseEnabled
boolean
Tags
Array<Tag>
VisibilityTimeout
integer

Return Values

Values returned after the resource is created. Access these with Fn::GetAtt.

AttributeTypeDescription
Arnstring-
QueueUrlstring-

Sample CloudFormation Template

A minimal template with required properties and common optional ones.

template.yaml
AWSTemplateFormatVersion: "2010-09-09"
Description: Sample template for AWS::SQS::Queue

Resources:
  MyResource:
    Type: AWS::SQS::Queue
    Properties:
      Tags:
        - Key: Environment
          Value: Production

Required IAM Permissions

Permissions CloudFormation needs in your IAM role to manage this resource.

create

sqs:CreateQueuesqs:GetQueueUrlsqs:GetQueueAttributessqs:ListQueueTagssqs:TagQueue

read

sqs:GetQueueAttributessqs:ListQueueTags

update

sqs:SetQueueAttributessqs:GetQueueAttributessqs:ListQueueTagssqs:TagQueuesqs:UntagQueue

delete

sqs:DeleteQueuesqs:GetQueueAttributes

list

sqs:ListQueues

Get the SQS Cheat Sheet

Everything you need to know about SQS on one page. HD quality, print-friendly.

Download Free Infographic

Quick Facts

ServiceSQS
Properties18
Required0
TaggingSupported
Primary IDQueueUrl

Supported Operations

CreateReadUpdateDeleteList

Immutable After Creation

These properties cannot be changed after the resource is created. Updating them triggers a replacement.

FifoQueueQueueName

External Links