Using Scaleway Queues and Scaleway Topics and Events with the AWS-CLI
Reviewed on 18 October 2024 • Published on 04 April 2023
The AWS-CLI is an open-source tool built on top of the AWS SDK for Python (Boto) that provides commands for interacting with AWS services. Once you have connected Scaleway Queues and/or Topics and Events to the AWS-CLI, you can start creating, listing and managing your queues and topics, sending messages and much more, all from your command line.
Use the following command to delete messages. This is necessary as once a message has been processed on your consumer side (typically by a worker), it will be re-queued unless it is explicitly deleted.
Find the HTTP request received by the HTTP server. It should have a body in json matching the following format. It contains information necessary to complete the subscription process:
"Message": "You have chosen to subscribe to the topic arn:scw:sns:fr-par:<REDACTED-ID>:MyTopic.\nTo confirm the subscription, visit the SubscribeURL included in this message.",
Get the function endpoint from the Scaleway console under “Functions” -> “[YOUR-FUNCTION-NAMESPACE]” -> “[YOUR-FUNCTION-NAME]” -> “Function Settings” tab -> “Function Endpoint”
Important
Only the main generated endpoint of the function will work, not the aliases. The endpoint should match the following format: