I am trying to download objects of my S3 bucket using invoke Powershell (https://docs.aws.amazon.com/powershell/latest/reference/items/Read-S3Object.html). This command works in Windows Poweshell but fails in uipath. I am getting the following error message.
“Invoke Power Shell: No credentials specified or obtained from persisted/shell defaults.”
I am using the exactly same parameter set for both Windows PS and Uipath invoke activity.
The following one I used in WindowsPS and I got file downloaded
“Read-S3Object -BucketName bucketname -Key Test.csv -File D:\test\Test.csv”
In Uipath I even tried to pass Accesskey and SecretKey but fails to execute. I’ve created Environment variables for aws in windows (https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-envvars.html#envvars-list).
I cannot use PowershellActivity. Any and all help will be highly appreciated.