32
Views
6
Comments
[Amazon Simple Storage Service (S3)] Oracle s3 connection
Application Type
Reactive

Hi ,

I need to connect S3 on oracle cloud but seems Amazon simple storage service component is only supporting AWS cloud, i tried using Oracle S3 api but facing issue in generating aws signature.

Also please let me know how to add awsv4 authentication in OutSystems rest API.

 

Regards,

Shoeb

2023-12-16 19-57-03
Sanjay Kushwah

Hi @Mohammad Shoeb,

Point 1.  need to connect S3 on oracle cloud.

Use Oracle Cloud Object Storage:

This is the simplest option. Oracle Cloud offers its own Object Storage service that's similar to S3 and integrates seamlessly with OutSystems.

This avoids the hassle of AWS signature generation and offers native integration benefits.

https://www.oracle.com/cloud/storage/object-storage/

https://docs.oracle.com/en/cloud/saas/supply-chain-and-manufacturing/23c/fasdm/configure-a-connection-for-the-oci-object-storage-service-in-the.html#s20075042

If you need specific features of AWS S3, you can still connect to it from OutSystems using this forge component

https://www.outsystems.com/forge/component-overview/3551/amazon-s3-connector

Point 2. add awsv4 authentication in OutSystems rest API. 

You can use this forge component.

https://www.outsystems.com/forge/component-overview/4180/unitawssigner

or you can consider using dedicated tools like "SigV4" or libraries "AWS SDK for .NET" that can handle AWSv4 signature generation independently.

https://github.com/aws/aws-sdk-net/blob/6c3be79bdafd5bfff1ab0bf5fec17abc66c7b516/sdk/src/Core/Amazon.Runtime/Internal/Auth/AWS4Signer.cs

https://github.com/tsibelman/aws-signer-v4-dot-net

Kind regards,

Sanjay Kushwah

2022-09-27 05-23-26
Mohammad Shoeb

Hi Sanjay,

thanks for replying but the option you have mentioned I already have gone through.

AWS S3 component using default specific url : 

https://<bucket-name>.s3.amazonaws.com/<object-key>

while Oracle uses :

https://<object_storage_namespace>.compat.objectstorage.uk-cardiff-1.oraclecloud.com

so i am not able to validating region bcoz both has different region and i did not find an option to change the url in S3 component to point oracle.

same case is with generating signature it is pointing to aws services.


Regards,

Shoeb

2023-12-16 19-57-03
Sanjay Kushwah

Hi @Mohammad Shoeb,

I didn't seen your code but assuming you have stucked to pointout your oracle cloud that your need to further access in your code after validate the region.

you can connect to your oracle by this forge component.

https://www.outsystems.com/forge/component-reviews/6636

Or you can try to customize your AWS S3 component.

like change your url format : https://<object_storage_namespace>.compat.objectstorage.<region>.oraclecloud.com

regards,

Sanjay Kushwah

2022-09-27 05-23-26
Mohammad Shoeb

Hi Sanjay,

Thanks for you help, but your suggesting is not relevant, I tried all the possible ways.


Thanks  

2024-07-05 14-16-55
Daniël Kuhlmann
 
MVP

Hi Mohammed,

I don't understand this discussion, but maybe I lack knowledge.

If you want to connect to Oracle s3 serve, why are we talking about Amazon S3 service. Amazon and Google are 2 different cloud providers.

Regards,

Daniel

2022-09-27 05-23-26
Mohammad Shoeb

Hi @Daniel Kuhlmann ,

We created s3 bucket on Oracle cloud and enable AWS compatible API. and when i am trying to use the same component AWS s3 available on forget so there we need to pass KEY,Secret and region to validate the credentials.

I am getting invalid region becoz as I can see the endpoint provide by oracle is like  

https://<object_storage_namespace>.compat.objectstorage.uk-cardiff-1.oraclecloud.com and AWS has 

https://<bucket-name>.s3.amazonaws.com/<object-key> 

so S3 bucket component is pointing to aws cloud and its region but i need to point to oracle endpoint.

can you please let me know if there is a direct way to integrate Oracle S3 in outsystems.


Appreciate ur support.


Regards,

Shoeb


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.