Skip to content

Instantly share code, notes, and snippets.

@cdimascio
Last active January 20, 2023 04:05
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save cdimascio/6ad53d9d780ff818c3c75feb2d8f9cd5 to your computer and use it in GitHub Desktop.
Save cdimascio/6ad53d9d780ff818c3c75feb2d8f9cd5 to your computer and use it in GitHub Desktop.
IBM Cloud Object Storage COS with AWS CLI
cat ~/.aws/config
[default]
region = us-standard
output = json
cat ~/.aws/credentials
[default]
aws_access_key_id = ACCESS_KEY
aws_secret_access_key = SECRET_KEY
aws s3 --endpoint-url=https://s3-api.us-geo.objectstorage.softlayer.net ls
# specify a bucket
aws s3 --endpoint-url=https://s3-api.us-geo.objectstorage.softlayer.net ls s3://bucket-1
aws -s3 --endpoint-url=https://s3-api.us-geo.objectstorage.softlayer.net cp /tmp/new-file s3://bucket-1/
@cdimascio
Copy link
Author

documentation can be found here: https://ibm-public-cos.github.io/crs-docs/cli

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment