- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
use this in list
LIST "/s3_bucket_name"
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
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.