Is this available in Community edition?
@RajeshT, the activities package this forum post is talking about is called UiPath.AmazonWebServices.Activities. It is free of charge and can be downloaded from the Official feed.
@ovidiuponoran Can you help me with the details on the GetBucket portion… I’ve added it in and when I try and run it I get the following error. Am I not specifying the bucket name in the right place? I am trying to upload to a specific folder inside of a bucket as shown in the screenshot below. I put in a dummy BUCKETNAME but in the code the real one exists
The exception details are below.
RemoteException wrapping UiPath.AmazonWebServices.Core.AWSException: Failed to get the bucket details: Sequence contains no matching element
Error: Sequence contains no matching element —> RemoteException wrapping System.InvalidOperationException: Sequence contains no matching element
at System.Linq.Enumerable.First[TSource](IEnumerable1 source, Func
2 predicate)
at UiPath.AmazonWebServices.Services.S3BucketService.d__8.MoveNext()
— End of inner exception stack trace —
at UiPath.AmazonWebServices.Services.S3BucketService.d__8.MoveNext()
— End of stack trace from previous location where exception was thrown —
at UiPath.AmazonWebServices.Activities.AWSActivity`1.EndExecute(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.System.Activities.IAsyncCodeActivity.FinishExecution(AsyncCodeActivityContext context,
IAsyncResult result)
at System.Activities.AsyncCodeActivity.CompleteAsyncCodeActivityData.CompleteAsyncCodeActivityWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)
@JoshB: you cannot have “/” in the name of a bucket, AWS S3 does not allow such thing.
My guess is the name of your bucket is “bucketname” and “name_check_data/screen_captures” is the prefix (folder) where you want to upload the object / where your object is located. So please use only the exact bucket name in “Get Bucket” activity.
@mrkrunaldoshi, @ovidiuponoran Making a note here. The issue got resolved once IAM user had ListBucketVersions permissions.
Thanks,
Manas
@manaspandey, however as we are on a growing path, we should integrate “ListObjectsRequest” method in upcoming versions of the package. Also, we need to give specific rights of “ListBucketVersions” to that particular IAM user. In my case, we had all the rights but still, it didn’t work however when we specifically gave this particular right, it started working.
I think ListVersions is more generic. There might be cases where users are interested in VersionsInfo, by setting the IncludeVersionsInfo in the “Get Object” activity.
We will consider this for the next version of the package.
Thanks for the feedback everyone. I was able to successfully implement this module and upload the S3 in the US-Govcloud region without issue once I removed the full path and provided the bucket and then the object key (path) in the upload action.
Thanks for creating these activity packages. Save a lot of time.
Could you tell me how to upload a file to folder inside the bucket? And not just to a bucket…
Because the output of “get bucket” activity is an AWSObject and I cannot add a string to that as you already mentioned.
So was wondering how else I can upload a file to a folder inside the bucket.
Hi @rachrahul2
In Upload Object From File activity, the value of ObjectKeyName shall include the subfolder structure as well. E.g. ObjectKeyName = “folder1/folder2/MyFile”
That worked like a charm. Thank you
Welcome
Quick suggestion for next release, The access keyID in the AWS scope is a string, not sure if this is intentionally designed to be a string but a “secureString” would be a good fit here like the SecretAccessKey type.
Thanks
Hi @ovidiuponoran, That is a wonderful guide.
We are trying to use these activities of AWS.
Can you please help us with below queries.
We have following details of S3 bucket, and we want to upload a file into one of the folders.
Host : “xxxxxxxxxxxxxxx.amazonaws.com”
Username: “dummyusername”
Password : We dont have direct string password, instead .ppk file based on username is provided to us.
Using above details through FILEZILLA we are able to connect and upload files manually.
The same we want to automate in UIPath with AWS activities.
Question : How and where can I provide “.ppk” details in AWS activities?
Awaiting for your reply. My emailID : “msreekanth8655@gmail.com”
Hi @rachrahul2
We are trying to use these of AWS.
Can you please help us with below queries.
We have following details of S3 bucket, and we want to upload a file into one of the folders.
Host : “s-xxxxxxxxxxxxxx.server.transfer.us-west-2.amazonaws.com”
Username: “dummyusername”
Password : We dont have direct string password, instead .ppk file based on username is provided to us.
Using above details through FILEZILLA we are able to connect and upload files manually.
The same we want to automate in UIPath with AWS activities.
Question : How and where can I provide “.ppk” details in AWS to connect to S3 bucket
Awaiting for your reply. My emailID : “msreekanth8655@gmail.com”
Hi @rachrahul2 , @ovidiuponoran Can any of you please help me with my question. my emailID : msreekanth8655@gmail.com
Hi @sreekanth_M
In order to connect to AWS Services you need to provide the mandatory parameters for Amazon Web Services Scope activity (i.e. AccessKeyId, SecretAccessKey, and Region). The you must use Get Bucket, Upload Object from File or Upload Objects from Folder activities.
Hi @ovidiuponoran, I got all above 3 details from my AWS Admin.
But when used Get Bucket activity, it says Access denied.
Does this need AWS CLI to be installed in my machine and some configuration to be done ?
Please help me here.
Let me know if you need any details from my end.
sreekanth8655@gmail.com