New Skills

New Training: Managing Amazon Simple Queueing Service (SQS) with PowerShell

by Team Nuggets
New Training: Deploy InfluxDB Securely in AWS with AWS Fargate and Caddy picture: A
Published on March 24, 2021

In this 8-video skill, CBT Nuggets trainer Trevor Sullivan explores how to create and manage SQS queues with the AWS Tools for PowerShell. Watch this new DevOps training.

Learn DevOps with one of these courses:

This training includes:

  • 8 videos

  • 1.3 hours of training

You’ll learn these topics in this skill:

  • Introduction to Amazon Simple Queueing Service and PowerShell

  • Configure Development Environment for Amazon SQS Automation

  • Exploring the Amazon SQS Commands in PowerShell

  • Create an Amazon SQS Queue with AWS Tools for PowerShell

  • Discover Amazon SQS Queue Attributes with PowerShell

  • Configure Amazon SQS Queue Attributes with PowerShell

  • Send a Message to an Amazon SQS Queue with PowerShell

  • Receive Messages from Amazon SQS with PowerShell

How to Create a New Queue in SQS with PowerShell

AWS Simple Queue Service (SQS) is a great tool for managing inter-application communications. SQS is a managed queuing system for sending, storing, and receiving messages without losing them or requiring other services to be available. Since SQS is commonly used to automate tasks, it's not surprising to find out that SQS itself is typically managed through some sort of command-line environment. One of the shell environments that can manage SQS is PowerShell.

PowerShell is a good CLI option for working with AWS services because of how it treats data. Unlike other shell environments, PowerShell is capable of handling data as objects instead of simple strings. Getting started with AWS within PowerShell is easy. Install the AWS Tools for PowerShell package provided by Amazon.

After that package is installed, developers can work with SQS directly within PowerShell. One of the most useful cmdlets they may find is the New-SQSQueue command. This cmdlet calls the SQS Create Queue API operation.

The New-SQSQueue contains 6 additional flags not including the standard regional and authentication flags included with all AWS cmdlets:

  • QueueName

  • Attribute

  • Tag

  • Select

  • PassThru

  • Force

It should be noted that the QueueName flag is required. The rest are optional.

Recommended Articles