Git Product home page Git Product logo

aws-sqs-cli's Introduction

AWS SQS Tutorial

Action Status npm npm GitHub GitHub top language GitHub repo size GitHub last commit node

This project is aimed at the beginner of using AWS SQS service.

It's a pretty command-line program to send/receive/delete SQS messages using javascript aws-sdk

menu.jpg

Usage

  • Clone this repo
  • Fill in your own AWS credentials in .env.example and rename it to .env
  • Run npm start

Follow the command-line hint:

  • Type in your queue name
  • Select the action you want
  • Have fun!

menu.jpg

Use Globally

Run npm link to link current package to global package. Then run aws-sqs-cli in the command-line

Develop

  1. Run npm run dev. Program is waiting for debugger to connect to localhost:9229
  2. Open your favorite debug tool to remote debug with localhost:9229

Publish

Using GitHub Action to publish this aws-sqs-cli package. It's configured to automatic publish package with v* tag matches.

  • Update package version using npm version v1.0.0
  • git push

aws-sqs-cli's People

Contributors

codefactor-io[bot] avatar dependabot[bot] avatar xahhy avatar

Watchers

 avatar

Forkers

lgtm-migrator

aws-sqs-cli's Issues

Add create queue feature through command-line

As aws-sdk provide API to create a Queue (Support both standard and FIFO queue).

  • Create a standard queue.
  • Create a FIFO queue.
  • Customize important queue attributes:

DelaySeconds - The length of time, in seconds, for which the delivery of all messages in the queue is delayed. Valid values: An integer from 0 to 900 seconds (15 minutes). Default: 0.

MessageRetentionPeriod - The length of time, in seconds, for which Amazon SQS retains a message. Valid values: An integer from 60 seconds (1 minute) to 1,209,600 seconds (14 days). Default: 345,600 (4 days).

ReceiveMessageWaitTimeSeconds - The length of time, in seconds, for which a ReceiveMessage action waits for a message to arrive. Valid values: An integer from 0 to 20 (seconds). Default: 0.

VisibilityTimeout - The visibility timeout for the queue, in seconds. Valid values: An integer from 0 to 43,200 (12 hours). Default: 30. For more information about the visibility timeout, see Visibility Timeout in the Amazon Simple Queue Service Developer Guide.

For FIFO queue, additional config should be set:

FifoQueue - Designates a queue as FIFO. Valid values: true, false. If you don't specify the FifoQueue attribute, Amazon SQS creates a standard queue. You can provide this attribute only during queue creation. You can't change it for an existing queue. When you set this attribute, you must also provide the MessageGroupId for your messages explicitly.
For more information, see FIFO Queue Logic in the Amazon Simple Queue Service Developer Guide.

ContentBasedDeduplication - Enables content-based deduplication. Valid values: true, false. For more information, see Exactly-Once Processing in the Amazon Simple Queue Service Developer Guide.
Every message must have a unique MessageDeduplicationId,

Add welcome view to the user at the beginning

After the user run the command-line, show the welcome message to the user. including:

  • Unicon poster
  • Simple description of AWS SQS service and official URL link.
  • Help message about how to use this tutorial.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.