How to Manage S3 Credentials for Vultr Object Storage Subscription

Updated on December 3, 2024

Managing S3 Credentials for Vultr Object Storage subscription allows viewing and regenerating access credentials for S3-compatible storage buckets. These credentials include the hostname, secret key, and access key. Your apps use these credentials to authenticate to the Vultr Object Storage subscription programmatically. You can also use these credentials to access a Vultr Object Storage subscription using any S3-compatible command-line tool like S3cmd.

Follow this guide to manage S3 Credentials for Vultr Object Storage subscription using the Vultr Customer Portal, API, and CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and select Cloud Storage.

  2. Click Object Storage. Then, select the target Vultr Object Storage subscription.

  3. Select Overview, and navigate to S3 Credentials. Click Regenerate Keys if you need a new copy of the S3 credentials.

    S3 Storage Credentials

  1. Send a GET request to List Object Storages endpoint and note the s3_hostname, s3_access_key, and s3_secret_key for your target Vultr Object Storage subscription.

    console
    $ curl "https://api.vultr.com/v2/object-storage" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json"
    
  2. Send a POST request to the Regenerate Object Storage Keys endpoint endpoint and specify a Vultr Object Storage subscription ID if you need to regenerate the keys.

    console
    $ curl "https://api.vultr.com/v2/object-storage/object_storage_id/regenerate-keys" \
        -X POST \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    

    Visit the Regenerate Object Storage Keys endpoint to view additional attributes to add to your request.

  1. List all Vultr Object Storage subscriptions and note the S3 HOSTNAME, S3 ACCESS KEY, and the S3 SECRET KEY for your target subscription.

    console
    $ vultr-cli object-storage list
    
  2. Regenerate the keys by specifying a Vultr object storage subscription ID if you need a fresh copy of the credentials.

    console
    $ vultr-cli object-storage regenerate-keys object_storage_id
    

    Run vultr-cli object-storage regenerate-keys --help to view all options.