BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
ankitd
Obsidian | Level 7

Hello Experts,

 

I have a cloud based SAS 9.4M4 environment and have deployed SAS on RHEL OS.

We are trying to connect to S3 bucket from SAS using Proc S3.

AWS CLI has been installed and tested from the server and it is working absolutely fine however while trying to use the Proc S3 code I get the below error message.

This error arises whether I use any of the functions i.e. LIST, PUT or GET etc.

 

ERROR: Could not list bucket contents.
ERROR: Encryption run-time execution error

 

Thanks in advance for your help.

 

Regards,

Ankit

1 ACCEPTED SOLUTION

Accepted Solutions
ankitd
Obsidian | Level 7

Basis investigation found that S3 uses AES encryption which is only supported from SAS 9.4M6. Got it vetted from SAS Technical Support as well.

 

Given that we are using SAS 9.4M4 there are possible 2 options only:

1. Use AWS CLI for data upload and download from S3 and then leverage it in SAS.

2. Upgrade to SAS 9.4M6

 

Hope this helps anyone else facing similar issue.

 

View solution in original post

8 REPLIES 8
hhhhh
Calcite | Level 5
Can you put the code? I think the region which you specified would have some issue.
ankitd
Obsidian | Level 7

Below is the sample code

 

proc s3 KEYID="key-id" SECRET="secret-access" REGION=USEAST;
LIST "/s3_bucket_name/test.txt";
run;

 

The S3 bucket is hosted in US-EAST-1 region.

hhhhh
Calcite | Level 5

 use this in list

 

LIST "/s3_bucket_name"

ankitd
Obsidian | Level 7

Its the same thing, whether you mention a file or just the bucket.

 

Additionally, we have tried the PUT and GET options as well same error message is being received.

hhhhh
Calcite | Level 5
I would suggest try connecting to bucket on winscp and verify that you have access to bucket using given credentials, if you are able to connect manually on s3 bucket then you should be able by Proc s3 also.
ankitd
Obsidian | Level 7

Basis investigation found that S3 uses AES encryption which is only supported from SAS 9.4M6. Got it vetted from SAS Technical Support as well.

 

Given that we are using SAS 9.4M4 there are possible 2 options only:

1. Use AWS CLI for data upload and download from S3 and then leverage it in SAS.

2. Upgrade to SAS 9.4M6

 

Hope this helps anyone else facing similar issue.

 

Ramprakash
Calcite | Level 5
Use AWS CLI for data upload and download from S3 and then leverage it in SAS.

how do we do this ? any examples would be very useful. I am trying to do this on a s3 bucket with multi-part parquet files?
ankitd
Obsidian | Level 7

You will need to install the CLI on the SAS compute node and then initialize the AWS config post which using the normal PUT and GET statements of AWS you can upload and download the objects from the bucket/s.

 

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 8 replies
  • 2770 views
  • 0 likes
  • 3 in conversation