292
Views
21
Comments
[Amazon Simple Storage Service (S3)] Getting invalid region - S3 AWS
Application Type
Reactive

Hello everyone, I have a question.

I'm using the [Amazon Simple Storage Service (S3)]. I have a bucket on aws S3 created in the 

AWS Region

EU (Paris) eu-west-3


Well, when I try to use the Object_Put, for example, I'm getting "invalid region" error, and I have setted accordingly that link:

https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/TS3Region.html


When I set the region as "USEast1", it works. Can someone explain me?


Thanks

2021-10-09 07-57-44
Stefan Weber
 
MVP

Hi,

for eu-west-3 you have to set the Region to EUWest3

When you say it works when you set the region to USEast1, then this would indicate that you have created the bucket there. Otherwise it wouldnt work.

Best

Stefan

UserImage.jpg
Daniel Nogueira

Hi @Stefan Weber , thanks for reply. 

Exactly, is expected to work with EUWest3, accordingly the link I've mentioned above, but, it does not work. 
I don't know why, but my bucket I have created in eu-west-3

2021-10-09 07-57-44
Stefan Weber
 
MVP

Hi Daniel.

i created an s3 bucket in eu-west-3 and i was able to put an object to it with Object_Put. 

I know that doesnt really help you, but at least it is not a bug of the S3 integration component. Maybe some policies on the bucket?

Stefan

UserImage.jpg
Daniel Nogueira

Hi @Stefan Weber , thank you for reply. Well, could be, but, if it is the “problem” shouldn’t work in USEast1…

Anyway, can you share with me which policies do you have enable on your bucket?


Thanks, Daniel

2021-10-09 07-57-44
Stefan Weber
 
MVP

I created a new bucket with default settings (just entered the name in the console and click create).

Then i created a new user account with credentials and added the AmazonS3FullAccess policy just for testing purposes.

Best

Stefan

UserImage.jpg
Daniel Nogueira

Weird. This was exactly what I did…:(

2021-10-09 07-57-44
Stefan Weber
 
MVP

Just something you sure have checked. The region name is case sensitive.

UserImage.jpg
Daniel Nogueira

Yes. I'm using it configured in my module as a Site property. As you can see, here is the value as it is...


UserImage.jpg
Daniel Nogueira

@Stefan Weber just one quick question. Do you know if I enable ACLs can interfere on it? 

2021-10-09 07-57-44
Stefan Weber
 
MVP

Hi, I just checked that and enabled acls with Owner preferred. Yet i still can put without any problems.

UserImage.jpg
Daniel Nogueira
2021-10-09 07-57-44
Stefan Weber
 
MVP

could you check if you have the latest forge version installed?

UserImage.jpg
Daniel Nogueira

@Stefan Weber gotcha! I had the block public access settings for this bucket disabled, and now, I create a new one with it enabled, and could procced with the object put using the correct region and it works

2021-10-09 07-57-44
Stefan Weber
 
MVP

Very interesting. That is actually totally misleading error message then. Congrats anyhow!

UserImage.jpg
Daniel Nogueira

anyway, I apprecciate you trying to help me. 
Now I have problems with AmazonTextract_IS extension, will do another question in the correct place.

UserImage.jpg
Daniel Nogueira

weird, the behaviour back to happen

2024-11-04 15-59-50
João Inácio

Hi, I'm getting exact same error, I'm currently using another extension, and it works fine, since this is a supported component I'm trying to use it but getting this issue....
Region i need to use is us-east-1 

2024-11-04 15-59-50
João Inácio

Changing the region from us-east-1 to USEast1 fixed the issue, what's the reason why the region format needs to be like this?

UserImage.jpg
Daniel Nogueira

Because it's how amazon define their code. They are expecting regions in that format, as you can see on their documentation: https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/TS3Region.html

UserImage.jpg
Somz Nayamsoft

According to the AWS documentation, the value format for Region should be USWest2 instead of us-west-2. 

2023-07-23 14-37-01
Bad Code Guru

Any region format gives the same error. Tried to make a bucket public. Nothin works:

Invalid region ILCentral1

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.