You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Connecting Queues or Topics and Events to the AWS-CLI
4
-
description: This page explains how to connect Scaleway Queues and/or Topics and Events to the AWS-CLI
3
+
title: Connecting Scaleway Queues to the AWS-CLI
4
+
description: This page explains how to connect Scaleway Queues to the AWS-CLI
5
5
content:
6
-
h1: Connecting Queues or Topics and Events to the AWS-CLI
7
-
paragraph: This page explains how to connect Scaleway Queues and/or Topics and Events to the AWS-CLI
8
-
tags: messaging sns sqs aws-cli cli aws sdk python boto
6
+
h1: Connecting Scaleway Queues to the AWS-CLI
7
+
paragraph: This page explains how to connect Scaleway Queues to the AWS-CLI
8
+
tags: messaging queues sqs aws-cli cli aws sdk python boto
9
9
categories:
10
-
- messaging
10
+
- serverless
11
11
dates:
12
-
validation: 2024-10-18
13
-
posted: 2023-01-04
12
+
validation: 2025-04-02
13
+
posted: 2025-04-02
14
14
---
15
15
16
-
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. With minimal configuration, you can start using the AWS-CLI with Scaleway Queues or Scaleway Topics and Events. This allows you to create, list and manage your queues and topics, send messages and much more, all from your command line.
16
+
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. With minimal configuration, you can start using the AWS-CLI with Scaleway Queues. This allows you to create, list and manage your queues, send messages and much more, all from your command line.
17
17
18
-
This guide shows you how to install the AWS-CLI and configure it to connect to Scaleway Queues or Scaleway Topics and Events.
18
+
This guide shows you how to install the AWS-CLI and configure it to connect to Scaleway Queues.
19
19
20
20
<Macroid="requirements" />
21
21
22
22
- A Scaleway account logged into the [console](https://console.scaleway.com)
23
23
-[Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
24
-
- Valid [credentials](/messaging/how-to/create-credentials/) for Queues and/or Topics and Events
25
-
24
+
- Valid [credentials](/queues/how-to/create-credentials/) for Scaleway Queues
26
25
<Messagetype="note">
27
26
This page assumes you will use the AWS-CLI v1.
28
27
</Message>
29
28
30
29
## How to install the AWS-CLI
31
30
32
-
To interact with Scaleway Queues and Scaleway Topics and Events, both `aws-cli` and `awscli-plugin-endpoint` need to be installed. The `awscli-plugin-endpoint` is a useful plugin to help people more easily access third-party providers such as Scaleway.
31
+
To interact with Scaleway Queues, both `aws-cli` and `awscli-plugin-endpoint` need to be installed. The `awscli-plugin-endpoint` is a useful plugin to help people more easily access third-party providers such as Scaleway.
33
32
34
33
Install both `aws-cli` and `awscli-plugin` using `pip`.
Now you have installed the AWS-CLI, you need to configure it for use with Scaleway Queues / Topics and Events.
42
+
Now you have installed the AWS-CLI, you need to configure it for use with Scaleway Queues.
44
43
45
44
1. Create a file named `~/.aws/config` by running the following command:
46
45
```
@@ -51,21 +50,19 @@ Now you have installed the AWS-CLI, you need to configure it for use with Scalew
51
50
With the most recent versions of awscli (1.29.0 or 2.13.0), the use of a plugin is not necessary. If you are using one of those versions and wish to skip this step, you can do so. Note that this will also affect your configuration file in the next step.
52
51
</Message>
53
52
54
-
2. Open the `~/.aws/config` file you just created in a text editor and edit it as follows (the Queues (SQS) or Topics and Events (SNS) endpoint URLs can be found in the console on the **Settings** page for the relevant product)
53
+
2. Open the `~/.aws/config` file you just created in a text editor and edit it as follows (the Queues (SQS) endpoint URL can be found in the console on the **Settings** page of the Queues product)
Optionally, you can also configure additional profiles by adding new blocks under `[sqs]` and `[sns]`. For example, you can add a third profile, `[profile aws]`, to connect to the AWS SQS/SNS service if you want:
65
+
Optionally, you can also configure additional profiles by adding new blocks under `[sqs]`. For example, you can add a profile for `[sns]` if you are also using Scaleway Topics and Events, or another profile, `[profile aws]`, to connect to the AWS SQS/SNS service if you want:
69
66
70
67
```
71
68
[plugins]
@@ -90,9 +87,6 @@ Now you have installed the AWS-CLI, you need to configure it for use with Scalew
90
87
<Messagetype="tip">
91
88
If you are using aws 1.29.0 or 2.13.0 without the plugin, your configuration file should be as follows:
@@ -104,34 +98,32 @@ Now you have installed the AWS-CLI, you need to configure it for use with Scalew
104
98
```
105
99
aws configure
106
100
```
107
-
**
108
-
4. Open the `~/.aws/credentials` file you just created, and for each product (out of **Queues** and **Topics and Events**) you want to use, add the access key and secret key you saved when you generated your [credentials](/messaging/how-to/create-credentials/):
109
-
```
110
-
[topics_events]
111
-
aws_access_key_id=<ACCESS_KEY_FOR_SNS>
112
-
aws_secret_access_key=<SECRET_KEY_FOR_SNS>
113
101
102
+
4. Open the `~/.aws/credentials` file you just created, and add the access key and secret key you saved when you generated your [credentials](/queues/how-to/create-credentials/):
103
+
```
114
104
[queues]
115
105
aws_access_key_id=<ACCESS_KEY_FOR_SQS>
116
106
aws_secret_access_key=<SECRET_KEY_FOR_SQS>
117
107
```
118
108
119
109
If you have other profiles, you can add a block to indicate their credentials too:
120
110
```
111
+
[topics_events]
112
+
aws_access_key_id=<ACCESS_KEY_FOR_SNS>
113
+
aws_secret_access_key=<SECRET_KEY_FOR_SNS>
114
+
121
115
[aws]
122
116
aws_access_key_id=<ACCESS_KEY>
123
117
aws_secret_access_key=<SECRET_KEY>
124
118
```
125
119
126
-
6. Test that everything is set up correctly with the following command:
120
+
5. Test that everything is set up correctly with the following command:
127
121
```
128
122
aws queues list-queues
129
123
```
130
124
131
125
Use the `--profile` option if you want to test it using a different profile.
132
126
133
127
<Messagetype="tip">
134
-
Check out our dedicated documentation to find more common commands for getting started with the AWS CLI:
135
-
- The [Queues guide](/messaging/api-cli/sqs-sns-aws-cli/#getting-started-with-scaleway-queues) walks you through creating and listing queues, sending messages to queues, and more.
136
-
- The [Topics and Events guide](/messaging/api-cli/sqs-sns-aws-cli/#getting-started-with-topics-and-events) shows you how to create and list topics and subscriptions, send messages to topics, and more.
128
+
Check out our dedicated documentation to find more common commands for getting started with the AWS CLI. The [Queues guide](/queues/api-cli/sqs-sns-aws-cli/#getting-started-with-scaleway-queues) walks you through creating and listing queues, sending messages to queues, and more.
Copy file name to clipboardExpand all lines: pages/queues/api-cli/python-node-queues.mdx
+8-9Lines changed: 8 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,10 +11,9 @@ categories:
11
11
dates:
12
12
validation: 2024-10-18
13
13
posted: 2023-01-04
14
-
validation_frequency: 8
15
14
---
16
15
17
-
AWS provides a number of SDKs (**S**oftware **D**evelopment **K**its) which provide language-specific APIs for AWS services, including [SQS](/messaging/concepts#sqs), which is the protocol Scaleway Queues is based on.
16
+
AWS provides a number of SDKs (**S**oftware **D**evelopment **K**its) which provide language-specific APIs for AWS services, including [SQS](/queues/concepts#sqs), which is the protocol Scaleway Queues is based on.
18
17
19
18
- AWS provides a dedicated [SDK for Go](https://aws.amazon.com/sdk-for-go/).
20
19
- The [AWS SDK for Python](https://aws.amazon.com/sdk-for-python/) is Boto3
@@ -26,7 +25,7 @@ This guide provides code samples to show you how to start using these SDKs with
26
25
27
26
- A Scaleway account logged into the [console](https://console.scaleway.com)
28
27
-[Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
29
-
- Valid [credentials](/messaging/how-to/create-credentials/) for Scaleway Queues
28
+
- Valid [credentials](/queues/how-to/create-credentials/) for Scaleway Queues
The `Endpoint` for Scaleway Queues is `https://sqs.mnq.fr-par.scaleway.com`. For the access and secret key values, use the credentials you [generated](/messaging/how-to/create-credentials/) for Queues.
60
+
The `Endpoint` for Scaleway Queues is `https://sqs.mnq.fr-par.scaleway.com`. For the access and secret key values, use the credentials you [generated](/queues/how-to/create-credentials/) for Queues.
62
61
63
62
</Message>
64
63
65
-
Once you are connected, you can use any functions available with the SDK. However, we recommend that you check they are [supported by Scaleway Queues](/messaging/reference-content/sqs-support/). See the [official documentation](https://pkg.go.dev/github.com/aws/aws-sdk-go/service/sqs) for more details on using the SDK, or read on to see some examples.
64
+
Once you are connected, you can use any functions available with the SDK. However, we recommend that you check they are [supported by Scaleway Queues](/queues/reference-content/sqs-support/). See the [official documentation](https://pkg.go.dev/github.com/aws/aws-sdk-go/service/sqs) for more details on using the SDK, or read on to see some examples.
66
65
67
66
### Create queue (Go)
68
67
@@ -115,10 +114,10 @@ sqs = boto3.resource('sqs',
115
114
```
116
115
117
116
<Messagetype="note">
118
-
The `endpoint_url` for Scaleway Queues is `https://sqs.mnq.fr-par.scaleway.com`. For the access and secret key values, use the credentials you [generated](/messaging/how-to/create-credentials/) for Queues.
117
+
The `endpoint_url` for Scaleway Queues is `https://sqs.mnq.fr-par.scaleway.com`. For the access and secret key values, use the credentials you [generated](/queues/how-to/create-credentials/) for Queues.
119
118
</Message>
120
119
121
-
Once connected, you can use any functions available with the SDK - just check that they are [supported by Scaleway Queues](/messaging/reference-content/sqs-support/). See the [official documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) for more details, or read on to see some examples.
120
+
Once connected, you can use any functions available with the SDK - just check that they are [supported by Scaleway Queues](/queues/reference-content/sqs-support/). See the [official documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/index.html) for more details, or read on to see some examples.
122
121
123
122
### Create queue (Python)
124
123
@@ -172,10 +171,10 @@ var sqsClient = new SQSClient({
172
171
```
173
172
174
173
<Messagetype="note">
175
-
The `endpoint_url` for Scaleway Queues is `https://sqs.mnq.fr-par.scaleway.com`. For the access and secret key values, use the credentials you [generated](/messaging/how-to/create-credentials/) for Scaleway Queues.
174
+
The `endpoint_url` for Scaleway Queues is `https://sqs.mnq.fr-par.scaleway.com`. For the access and secret key values, use the credentials you [generated](/queues/how-to/create-credentials/) for Scaleway Queues.
176
175
</Message>
177
176
178
-
Once connected, you can use any of the SDK's functions as long as they're [supported by Scaleway Queues](/messaging/reference-content/sqs-support/). Refer to AWS's [official documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html)) for more information, or read on to see some examples.
177
+
Once connected, you can use any of the SDK's functions as long as they're [supported by Scaleway Queues](/queues/reference-content/sqs-support/). Refer to AWS's [official documentation](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/SQS.html) for more information, or read on to see some examples.
0 commit comments