NavigationContentFooter
Jump toSuggest an edit

My API key does not work with Object Storage

Reviewed on 15 December 2023Published 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 S3 third-party tool has a preferred Project assigned.

If you try to perform S3 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 S3-compatible third-party tool.

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

Docs APIScaleway consoleDedibox consoleScaleway LearningScaleway.comPricingBlogCarreer
© 2023-2024 – Scaleway