Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
84 changes: 84 additions & 0 deletions menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -4219,6 +4219,90 @@
"label": "NATS",
"slug": "nats"
},
{
"items": [
{
"label": "Overview",
"slug": "../queues"
},
{
"label": "Concepts",
"slug": "concepts"
},
{
"label": "Quickstart",
"slug": "quickstart"
},
{
"label": "FAQ",
"slug": "faq"
},
{
"items": [
{
"label": "Create credentials",
"slug": "create-credentials"
},
{
"label": "Manage credentials",
"slug": "manage-credentials"
},
{
"label": "Create and manage queues",
"slug": "create-manage-queues"
},
{
"label": "Monitor Queues with Cockpit",
"slug": "monitor-queues-cockpit"
}
],
"label": "How to",
"slug": "how-to"
},
{
"items": [
{
"label": "Queues API Reference",
"slug": "https://www.scaleway.com/en/developers/api/messaging-and-queuing/sqs-api/"
},
{
"label": "Connecting Queues to the AWS-CLI",
"slug": "connect-aws-cli"
},
{
"label": "Using Queues with the AWS-CLI",
"slug": "queues-aws-cli"
},
{
"label": "Using Go, Python or Node.js with Queues",
"slug": "python-node-queues"
}
],
"label": "API/CLI",
"slug": "api-cli"
},
{
"items": [
{
"label": "Queues overview",
"slug": "queues-overview"
},
{
"label": "Queues - supported actions",
"slug": "queues-support"
},
{
"label": "Limitations",
"slug": "limitations"
}
],
"label": "Additional Content",
"slug": "reference-content"
}
],
"label": "Queues",
"slug": "queues"
},
{
"items": [
{
Expand Down
Binary file removed pages/nats/assets/scaleway-nats-create-account.webp
Binary file not shown.
Binary file removed pages/nats/assets/scaleway-nats-creds.webp
Binary file not shown.
Binary file removed pages/nats/assets/scaleway-nats-overview.webp
Binary file not shown.
Binary file not shown.
Binary file removed pages/nats/how-to/assets/scaleway-nats-creds.webp
Binary file not shown.
Binary file removed pages/nats/how-to/assets/scaleway-nats-overview.webp
Binary file not shown.
129 changes: 129 additions & 0 deletions pages/queues/api-cli/connect-aws-cli.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
---
meta:
title: Connecting Scaleway Queues to the AWS-CLI
description: This page explains how to connect Scaleway Queues to the AWS-CLI
content:
h1: Connecting Scaleway Queues to the AWS-CLI
paragraph: This page explains how to connect Scaleway Queues to the AWS-CLI
tags: messaging queues sqs aws-cli cli aws sdk python boto
categories:
- serverless
dates:
validation: 2025-04-02
posted: 2025-04-02
---

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.

This guide shows you how to install the AWS-CLI and configure it to connect to Scaleway Queues.

<Macro id="requirements" />

- A Scaleway account logged into the [console](https://console.scaleway.com)
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
- Valid [credentials](/queues/how-to/create-credentials/) for Scaleway Queues
<Message type="note">
This page assumes you will use the AWS-CLI v1.
</Message>

## How to install the AWS-CLI

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.

Install both `aws-cli` and `awscli-plugin` using `pip`.

```
pip3 install awscli
pip3 install awscli-plugin-endpoint
```

## How to configure the AWS-CLI

Now you have installed the AWS-CLI, you need to configure it for use with Scaleway Queues.

1. Create a file named `~/.aws/config` by running the following command:
```
aws configure set plugins.endpoint awscli_plugin_endpoint
```

<Message type="tip">
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.
</Message>

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)
```
[plugins]
endpoint = awscli_plugin_endpoint
[profile sns]
region = fr-par
[profile sqs]
region = fr-par
sqs =
endpoint_url = https://sqs.mnq.fr-par.scaleway.com
```

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:

```
[plugins]
endpoint = awscli_plugin_endpoint
[profile sns]
region = fr-par
sns =
endpoint_url = https://sns.mnq.fr-par.scaleway.com
[profile sqs]
region = fr-par
sqs =
endpoint_url = https://sqs.mnq.fr-par.scaleway.com
[profile aws]
region=eu-west-3
output=json
```

<Message type="important">
If you are using the AWS-CLI v2, you must include the path to the plugin in your configuration file. Add `cli_legacy_plugin_path = <path-to-plugin>` to the `[plugins]` section, replacing `<path-to-plugin>` with the corresponding path.
</Message>

<Message type="tip">
If you are using aws 1.29.0 or 2.13.0 without the plugin, your configuration file should be as follows:
```
[profile sqs]
region = fr-par
endpoint_url = https://sqs.mnq.fr-par.scaleway.com
```
</Message>


3. Generate a credentials file using the following command:
```
aws configure
```

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/):
```
[queues]
aws_access_key_id=<ACCESS_KEY_FOR_SQS>
aws_secret_access_key=<SECRET_KEY_FOR_SQS>
```

If you have other profiles, you can add a block to indicate their credentials too:
```
[topics_events]
aws_access_key_id=<ACCESS_KEY_FOR_SNS>
aws_secret_access_key=<SECRET_KEY_FOR_SNS>

[aws]
aws_access_key_id=<ACCESS_KEY>
aws_secret_access_key=<SECRET_KEY>
```

5. Test that everything is set up correctly with the following command:
```
aws queues list-queues
```

Use the `--profile` option if you want to test it using a different profile.

<Message type="tip">
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.
</Message>
8 changes: 8 additions & 0 deletions pages/queues/api-cli/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
meta:
title: Queues - API/CLI Documentation
description: Queues API/CLI Documentation
content:
h1: Queues - API/CLI Documentation
paragraph: Queues API/CLI Documentation
---
Loading