Configuring the AWS CLI with Numspot
This guide helps you configure the AWS CLI (Amazon Web Services Command Line Interface) to access Numspot services using access credentials.
The full reference of the Object Storage API is available in the OpenAPI Scalar documentation.
Configuration steps
-
Install the AWS CLI
Download and install the AWS CLI by following the official AWS CLI documentation.
-
Run the configuration command
Open a terminal and run:
aws configure -
Enter the following information:
-
AWS Access Key ID: Your Numspot access key. -
AWS Secret Access Key: Your Numspot secret key. For more information, see Obtaining a key pair. -
Default region name: The region you want to use. -
Default output format: jsontipThis command configures the default profile (default). To configure a named profile, use the following command:
aws configure --profile YOUR_PROFILE
Generated files
~/.aws/credentials:
[default]
aws_access_key_id = YOUR_ACCESS_KEY_ID
aws_secret_access_key = YOUR_SECRET_ACCESS_KEY
[YOUR_PROFILE]
aws_access_key_id = OTHER_ACCESS_KEY
aws_secret_access_key = OTHER_SECRET_KEY
~/.aws/config:
[default]
region = eu-west-2
output = json
[profile YOUR_PROFILE]
region = eu-west-2
output = json
Use a specific profile
To use a named profile in your AWS CLI commands:
aws s3 ls --profile YOUR_PROFILE
Check the configuration
You can display the configuration of a profile using the following command:
aws configure list --profile YOUR_PROFILE
Manual configuration
If you prefer, you can manually create or edit the ~/.aws/credentials and ~/.aws/config files following the formats shown above.