Question

AWS S3 File management does not seem to support all regions


Userlevel 1
Badge +7

Hi everyone,

 

I have noticed that the AWS S3 File management component ( https://botstore.automationanywhere.com/bot/automation-360-aws-s3-file-management ) and I manage to upload and download files if the bucket is in Ireland.

When I try to use a bucket in Paris I get the message : Please enter valid Region field

I have tried “eu-west-3”, “Paris”, “France”, and all fail with the same message.

However, setting the region to “Ireland” (and using a bucket in Ireland) solves the problem.

The documentation states : https://s3-us-west-2.amazonaws.com/botstore-media/wp-content/uploads/2023/06/20151544/automation-360-aws-s3-file-management-automation-anywhere-readme-1.pdf “It supports all the regions supported by Amazon s3”

What is the reason for this problem ? How to solve that ?


2 replies

Userlevel 3
Badge +7

Thanks for asking this question in the Developer’s Forum. I’ve reached out to the author of the bot for their response, I’ll update this when I know more.

Userlevel 1
Badge +7

I have used a workaround with python :

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import sys
import boto3

def getDocument(argsList):
source_name=argsList[0]
bucketName=argsList[1]
destination_name=argsList[2]

s3 = boto3.client('s3')
s3.download_file(bucketName, source_name, destination_name)

But it is quite puzzling to discover that packages in the bot store do not work as expected.

+python is not exactly well integrated inside of AA, the result can only be “null” (success) or “bot error” (failure)

Reply