Created
July 30, 2023 11:53
-
-
Save mosheeshel/e005d0d37d8c6b90763a04f845866dde to your computer and use it in GitHub Desktop.
Some cheat commands to easily view AWS status on localstack container
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Localstack docker commands (rentblocks) | |
# Create fifo queue (note the `.fifo` and special attributes) | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 sqs create-queue --queue-name TxMgrTransferRequest.fifo --attributes FifoQueue=true,MessageRetentionPeriod=1209600,ContentBasedDeduplication=false | |
# Create regular sqs queue | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 sqs create-queue --queue-name TxMgrTransferRequest | |
# send message to regular code | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 sqs send-message --queue-url http://localhost:4566/000000000000/TxMgrTransferRequest.fifo --message-body "empty" | |
#Get list of queues in localstack | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 sqs list-queues0 | |
#read a messages from queue | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 sqs receive-message --queue-url http://localhost:4566/000000000000/localstackDeadLetters.fifo | |
#get list of topics | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 sns list-topics | |
# get subscriptions to topic (which queues receive messages from topicvi ) | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 sns list-subscriptions-by-topic --topic-arn arn:aws:sns:us-east-1:000000000000:NodesReply | |
# Tail for docker logs | |
docker logs --follow transaction-manager | |
#list s3 buckets in localstack | |
aws --endpoint-url=http://127.0.0.1:4566/ --region=us-east-1 s3 ls |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment