Impossible Cloud Documentation
  • Company overview
    • What is Impossible Cloud
  • Getting Started
    • Getting Started with Impossible Cloud Storage
      • Setting up
      • Next steps
      • Getting support
  • Feature Release Notes
    • 29th April 2025
  • Impossible cloud storage Guide
    • Storage Console URLs and API Endpoints
    • Storage Console
      • Accessing the console
        • Signing up for Impossible Cloud Storage
        • Signing in to Impossible Cloud Storage
        • Session lifetime limits
      • Interacting with the console
        • Navigating the menu
        • Using the panel
    • Buckets and Objects
      • Creating a bucket
      • Storing objects in a bucket
      • Interacting with objects
      • Creating folders in a bucket
      • Interacting with folders and buckets
      • Public File Sharing via URLs
      • Emptying a Bucket
      • Limitations
      • Versioning and object lock
        • Enabling versioning
        • Using versioning
        • Enabling object lock
        • Using object lock
    • Access keys
    • CLI User Guide
      • AWS CLI installation instructions
      • AWS CLI configuration
      • Using Impossible Cloud with AWS CLI
      • AWS CLI basic commands
      • AWS CLI advanced commands
        • Examples
      • AWS CLI for cloud-to-cloud migration scenarios
      • AWS CLI Credentials & Config chain
      • AWS CLI: IAM
        • Limitations
        • List of supported operations
        • Operations Descriptions and Examples
    • Usage
      • Storage Calculation
      • Fair use policy
    • Profile settings
      • Multi-Factor Authentication (MFA)
        • Enabling and Disabling MFA
        • MFA Reset
        • Organization-Wide Policies
  • Security
    • Securing Your Data
    • Identity Access Management (IAM)
      • Managing Users
      • Managing Groups
      • Managing Policies
    • CORS support
      • Limitations
      • CORS Configuration
  • Integrations with other applications
    • Backup Software Integrations Guides
    • Cloud Storage Browsers Integrations Guides
    • Media Management Software Integrations Guides
    • NAS Applications Integrations Guides
  • Other support resources
    • Impossible Cloud Management Console (ICMC)
    • Knowledge Base
    • Help Center
    • System Status
Powered by GitBook
On this page
  • Method 1
  • Method 2

Was this helpful?

Export as PDF
  1. Impossible cloud storage Guide
  2. CLI User Guide

Using Impossible Cloud with AWS CLI

There are two ways to use Impossible Cloud with the AWS CLI.

Method 1

The first method involves adding the following subcommand after every command:

--endpoint-url=https://eu-central-2.storage.impossibleapi.net

For example, if you want to list your buckets in the CLI, please type:

aws s3 ls --endpoint-url=https://eu-central-2.storage.impossibleapi.net

or use a specific profile:

aws s3 ls --profile=impossiblecloud --endpoint-url=https://eu-central-2.storage.impossibleapi.net

Method 2

To make it easier to access third-party S3 providers, you can use the awscli-plugin-endpoint plugin, but you will need to create an additional profile along with the default one. To create this profile, you can add a "profile" line at the end of the config file located in the ".aws" directory in your home directory.

Add a line profile line at the end of the config file like this at the end of the file:

[profile impossiblecloud]

After you've added the "profile" line to the config file, be sure to save the file.

Once you have created a profile, you can follow the instructions provided on the plugin's GitHub page, which you can find at this link: https://github.com/wbinglee/awscli-plugin-endpoint. By doing so, you should be able to use "--profile impossiblecloud" after every command instead of having to type out the entire URL.

For instance, if you wish to list your buckets using the AWS CLI, simply type:

aws s3 ls --profile=impossiblecloud

If you need to create a bucket in a specific region, you have to use the appropriate regional endpoint to make a request. For example if you need to create a new bucket in the eu-west-1 region:

aws s3api create-bucket --profile impossiblecloud --endpoint-url https://eu-west-1.storage.impossibleapi.net --bucket mytestbucket If you were using another regional endpoint, then the bucket will be created in that endpoint. The parameters --region and --create-bucket-configuration LocationConstraint are ignored.

PreviousAWS CLI configurationNextAWS CLI basic commands

Last updated 2 months ago

Was this helpful?