NavigationContentFooter
Jump toSuggest an edit

My API key does not work with Object Storage

Reviewed on 03 July 2024Published on 15 December 2023

Before you start

To complete the actions presented below, you must have:

  • Owner status or IAM permissions allowing you to perform actions in the intended Organization

Problem

When using third-party API or CLI tools, such as the AWS CLI, MinIO Client, or Rclone to manage your Object Storage resources, you may experience one of the following issues connecting to the Scaleway API or listing your resources:

  • Listing your buckets with a third-party tool returns nothing, but you have at least one bucket created in the Scaleway console.

  • The tool returns An error occurred (Forbidden) when calling the ListObjectsV2 operation: Forbidden or a similar message.

Cause

The API key you used to configure the Amazon S3 third-party tool has a preferred Project assigned.

If you try to perform Object Storage operations in a Project that is NOT the preferred Project using a third-party tool, you will not be able to access your resources, resulting in an error message or an empty response.

Solution

You can change the preferred project of your API key:

  • by editing it from the Scaleway console
  • by overriding it while making an API call

You should now be able to list your buckets using a supported Amazon Amazon S3-compatible third-party tool.

Going further

  • Refer to the documentation on using IAM API keys with Object Storage for more information.

  • If you did not manage to identify the error and solve it by yourself, open a support ticket, and provide as many details as possible, along with the necessary information below:

    • Object Storage Endpoint (e.g. s3.fr-par.scw.cloud)
    • Bucket name
    • Object name (if the request concerns an object)
    • Request type (PUT, GET, etc.)
    • HTTP status code
    • Date and time (timestamp)
    • User-agent (SDK, client, console, etc.)
    • Transaction ID (if possible)
    • Log / trace of the error (if possible)
Was this page helpful?
API DocsScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCareers
© 2023-2024 – Scaleway