If you are using the Oracle Object Store as part of the Oracle Public Cloud, "rclone" is an open source tool you can use to make things easier.
One of the things I really like about RCLONE is that it provides a command line like interface that is easy to use. If you have looked at the OCI cli tool, it requires a myriad of parameters. Below is the command I was using with OCI to view my list of buckets (I obfuscated some of the values).
oci os bucket list --endpoint https://objectstorage.us-ashburn-1.oraclecloud.com --namespace-name id20xxxxxofo --compartment-id ocid1.compartment.oc1..aaaaaaxxxxxxxxxxxxxxxxxcpqyvzzb4ykd3tyq --config-file ~/.oci/natdconfig
1) Configure compatibility for an S3 interface in the Public cloud.
2) Download rclone.
2) Configure Rclone.
Give this entry a unique name to identify the S3 object store.
Type of storage to configure.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value..4 / Amazon S3 Compliant Storage Provider (AWS, Alibaba, Ceph, Digital Ocean, Dreamhost, IBM COS, Minio, Tencent COS, etc)..
Choose your S3 provider.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value..13 / Any other S3 compatible provider..
Get AWS credentials from runtime (environment variables or EC2/ECS meta data if no env vars).Only applies if access_key_id and secret_access_key is blank.Enter a boolean value (true or false). Press Enter for the default ("false").Choose a number from below, or type in your own value1 / Enter AWS credentials in the next step\ "false"
env_auth> 1 <-- 1 to identify that we are using "AWS compatible Key" for authentication
AWS Access Key ID.Leave blank for anonymous access or runtime credentials.Enter a string value. Press Enter for the default ("").
access_key_id> ddddddddddddeeeeeeeeeffffffffggggg <-- This is the Access key ID that was generated from my name in the public cloud
AWS Secret Access Key (password)Leave blank for anonymous access or runtime credentials.Enter a string value. Press Enter for the default ("").
secret_access_key> dd32234sdwercfwe --> The system generated key associated with my access key
Region to connect to.Leave blank if you are using an S3 clone and you don't have a region.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value1 / Use this if unsure. Will use v4 signatures and an empty region.\ ""
region> --> Leave blank
Endpoint for S3 API.Required when using an S3 clone.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value
endpoint> {namespace}.compat.objectstorage.{region}.oraclecloud.com --> Note that you will need to fill in your namespace from your account, and ensure the region is correct for the URL.
Location constraint - must be set to match the Region.Leave blank if not sure. Used when creating buckets only.Enter a string value. Press Enter for the default ("").
location_constraint> --> Leave blank
Canned ACL used when creating buckets and storing or copying objects.This ACL is used for creating objects and if bucket_acl isn't set, for creating buckets too.For more info visit https://docs.aws.amazon.com/AmazonS3/latest/dev/acl-overview.html#canned-aclNote that this ACL is applied when server side copying objects as S3doesn't copy the ACL from the source but rather writes a fresh one.Enter a string value. Press Enter for the default ("").Choose a number from below, or type in your own value1 / Owner gets FULL_CONTROL. No one else has access rights (default).\ "private"
acl> --> Leave blank
Edit advanced config? (y/n)y) Yesn) No (default)
y/n> --> Leave blank
Remote config--------------------[oci_s3]type = s3provider = Otherenv_auth = falseaccess_key_id = S3_Keysecret_access_key = ddddddd...endpoint = xxxxxxx.compat.objectstorage.us-ashburn-1.oraclecloud.com--------------------y) Yes this is OK (default)e) Edit this remoted) Delete this remote
y/e/d> y --> y to save this entry
3) Validate rclone.
[oci_s3]type = s3provider = otherenv_auth = falseaccess_key_id =dd32234sdwercfwesecret_access_key = dddddxxxxxxendpoint = xxxxxxx.compat.objectstorage.us-ashburn-1.oraclecloud.comacl = authenticated-read
- the entry is "oci_s3"
- The access key for S3 is dd32234sdwercfwe"
- The secret associated with my S3 key is "dddddxxxxxx"
- The end point I am connecting to is "xxxxxxx.compat.objectstorage.us-ashburn-1.oraclecloud.com"
- "xxxxxxx" is my namespace
- "us-ashburn-1" is my region
No comments:
Post a Comment