HomeServerlessMessaging and QueuingHow to
Create credentials for a Messaging and Queuing namespace
Jump toUpdate content

How to create credentials for a Messaging and Queuing namespace

Reviewed on 08 June 2023Published on 11 August 2022

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.

Security & Identity (IAM):

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
Requirements:

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.

  1. Click Messaging in the Serverless section of the side menu. The list of your Messaging and Queuing namespaces displays.

  2. Click the NATS namespace you wish to create credentials for. The namespace’s Overview page displays.

  3. In the Credentials panel, click Generate credentials. A pop-up displays.

  4. 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.

  5. 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.

  1. Click Messaging in the Serverless section of the side menu. The list of your Messaging and Queuing namespaces displays.

  2. Click the SQS/SNS namespace you wish to create credentials for. The namespace’s Overview page displays.

  3. In the Credentials panel, click Generate credentials. A pop-up displays.

  4. Enter a name for these credentials.

  5. 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.

  6. 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.

  7. 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.

See Also