Hey folks, just curious when I run following code in SAS studio:
proc s3 keyid="&accesskey." secret= "&secretKey." region=useast; put "/local/dir/xxx.csv" "/bucket/dir/xxx.csv"; run;
I got this error:
ERROR: Could not put file. ERROR: The AWS access key Id you provided does not exist in our records.
The key id is fresh obtained and any idea where to debug?
Thanks in advance!
The error message seems to indicate that the resolved access key variable defined is not in the AWS records. According to me the first step is to verify whether the accesskey variable has been assinged the appropriate value and has no typo. You can check this by printing out the value of the accesskeyvariable i.e. %put accesskey=&accsesskey; and check the resolved value does not have a typo. If there is a typo reassign the accesskey variable and re-run. if that doesnt resolve the issue, then try checking whether the S3 bucket has the accesskey defined, else work with your Amazon S3 admin to generate it for you. Hope this helps!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.