Last active
January 20, 2023 04:05
-
-
Save cdimascio/6ad53d9d780ff818c3c75feb2d8f9cd5 to your computer and use it in GitHub Desktop.
IBM Cloud Object Storage COS with AWS CLI
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ~/.aws/config | |
[default] | |
region = us-standard | |
output = json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat ~/.aws/credentials | |
[default] | |
aws_access_key_id = ACCESS_KEY | |
aws_secret_access_key = SECRET_KEY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws s3 --endpoint-url=https://s3-api.us-geo.objectstorage.softlayer.net ls |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# specify a bucket | |
aws s3 --endpoint-url=https://s3-api.us-geo.objectstorage.softlayer.net ls s3://bucket-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aws -s3 --endpoint-url=https://s3-api.us-geo.objectstorage.softlayer.net cp /tmp/new-file s3://bucket-1/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
documentation can be found here: https://ibm-public-cos.github.io/crs-docs/cli