Cloud Compute examples
Step 1 – IAM: Create API keys.
OCI Admin UI Go to:
Identity -> Users -> Select Target Users -> Customer Secret Key
OBS.: Copy the KEY this will be displayed only in this creation step. If lost will be require recreate it.
Correlation:
Very important aspect is map relevant AWS terminology AWS <-> OCI:
aws_access_key_id –> Access KEY ID
aws_secret_access_key == Key
Step 2 – INITIAL CONFIG:
EndPoint: Define target region where buckets are located.
Example: Home region is Phoenix, buckets will be deployed at Ashburn.
WARNING
If the buckets are deployed in the home region you can even do not specify the region_name.
If this is not the case specify target region(where buckets are deployed) is required and also match to corresponding endpoint address.
import boto3 from botocore.client import Config config = Config( connect_timeout=4, read_timeout=4, #region_name='us-ashburn-1', #Do not required ) s3 = boto3.resource( 's3', aws_access_key_id="oci_access_key_id", aws_secret_access_key="oci_access_key", config=config, endpoint_url="https://tenancy_name_space.compat.objectstorage.us-phoenix-1.oraclecloud.com", #My home region ) # # Print out bucket names for bucket in s3.buckets.all(): print(bucket.name)
import boto3 from botocore.client import Config config = Config( connect_timeout=4, read_timeout=4, region_name='us-ashburn-1', #Required required ) s3 = boto3.resource( 's3', aws_access_key_id="oci_access_key_id", aws_secret_access_key="oci_access_key", config=config, endpoint_url="https://tenancy_name_space.compat.objectstorage.us-ashburn-1.oraclecloud.com", #Target region ) # # Print out bucket names for bucket in s3.buckets.all(): print(bucket.name)
...passionate technology professional with deep experience in with high volume deployments and mission critical workloads build the orientation on - how to achieve the objectives leveraging key technologies be transparent and most of all a ‘forever student,’. Major aspect here is do using simple never forget enjoy and have fun avoid... Cycling is my major sport, with that I've learned several aspects that can apply on daily bases.... Horse riding is also very nice I try do when I can.... The views expressed on this [blog; website] are my own and do not necessarily reflect the views of Oracle or any other Company that I've worked in past. Today I've help the following certifications: OCI Architect Associate OCI Architect Professional OCI Operations Associate OCI Fundamentals The views expressed on www.simplesample.com blog is my own and do not necessarily reflect the views of Oracle.