How to create credentials for a Messaging and Queuing namespace
This page shows how to create credentials for a Messaging and Queuing namespace. Credentials give their bearer (e.g. services and platforms) access to your namespace. The process of creating credentials differs depending on the namespace type (NATS or SQS/SNS).
You can create multiple sets of credentials for each namespace.
You may need certain IAM permissions to carry out some actions described on this page. This means:
- you are the Owner of the Scaleway Organization in which the actions will be carried out, or
- you are an IAM user of the Organization, with a policy granting you the necessary permission sets
- You have an account and are logged into the Scaleway console
- You have created a Messaging and Queuing namespace
How to create credentials for a NATS namespace
Credentials for NATS namespaces are not granular: they necessarily give full read and write access to the namespace. The bearer of these credentials can publish and receive messages, as well as manage topics and streams.
-
Click Messaging in the Serverless section of the side menu. The list of your Messaging and Queuing namespaces displays.
-
Click the NATS namespace you wish to create credentials for. The namespace’s Overview page displays.
-
In the Credentials panel, click Generate credentials. A pop-up displays.
-
Enter a name for these credentials, and click Generate credentials.
The credentials are created and a button displays prompting you to download them in a
.creds
file.Important:The generated credentials are displayed only once. Make sure to download and safely store them before closing the window.
-
Click Download and save the file, before closing the window.
You are returned to your namespace’s overview page. The name of your newly-generated credentials and their access level is displayed in the Credentials tab.
How to create credentials for an SQS/SNS namespace
Credentials for SQS/SNS namespaces are granular: you can define the level of access that they should give.
-
Click Messaging in the Serverless section of the side menu. The list of your Messaging and Queuing namespaces displays.
-
Click the SQS/SNS namespace you wish to create credentials for. The namespace’s Overview page displays.
-
In the Credentials panel, click Generate credentials. A pop-up displays.
-
Enter a name for these credentials.
-
Select the required permissions for the credentials. You must choose at least one of Write, Read and Manage. You are free to select any combination of these permissions.
-
Click Generate credentials.
The credentials are created. The access key and secret key are displayed, and you are invited to copy them.
Important:This is your only chance to view and save the secret key. Make sure that you copy it and save it somewhere securely.
-
Copy and save the credentials, before closing the window.
You are returned to your namespace’s overview page. The name of your newly-generated credentials, along with the access key and access level are displayed in the Credentials tab.