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!
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.