Skip to main content
Solved

Amazon S3 Connector

  • November 27, 2022
  • 2 replies
  • 305 views

gisgeek
Contributor
Forum|alt.badge.img+9

Hi I am trying to connect to a public S3 bucket and have tried multiple times to connect and download files in the bucket. I just keep getting an error message. I'm probably entering something wrong but I've tried multiple different things and no luck so hoping for some guidance here.

 

S3Connector: There was an error connecting to Amazon S3: 'Parameter validation failed:

Invalid bucket name "shaking-layers/": Bucket name must match the regex "^[a-zA-Z0-9.\\-_]{1,255}$" or be an ARN matching the regex "^arn:(aws).*:s3:[a-z\\-0-9]+:[0-9]{12}:accesspoint[/:][a-zA-Z0-9\\-]{1,63}$|^arn:(aws).*:s3-outpo...'. Confirm that your credentials and region settings are correct. Some regions are not publicly available - contact AWS for more information.

 

I have attached a screenshot of what I am entering in the S3 Connector.

Best answer by debbiatsafe

Hello @gisgeek​ 

It appears you may have confused the bucket with path and vice versa. The bucket value should be josh-public-bucket-test and the path value should shaking-layers. You do not need to specify the region or parts such as s3/amazonaws.com when entering the value for bucket name as the transformer takes care of these parts.

Example setup for S3Connector. Do not include the region or s3/amazonaws.com parts with the bucket namePlease note the shaking-layers folder appear to only contain folders so you may want to toggle the Include Subfolders parameter to 'Yes' if you wish to download files within subfolders.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

debbiatsafe
Safer
Forum|alt.badge.img+21
  • Safer
  • Best Answer
  • November 27, 2022

Hello @gisgeek​ 

It appears you may have confused the bucket with path and vice versa. The bucket value should be josh-public-bucket-test and the path value should shaking-layers. You do not need to specify the region or parts such as s3/amazonaws.com when entering the value for bucket name as the transformer takes care of these parts.

Example setup for S3Connector. Do not include the region or s3/amazonaws.com parts with the bucket namePlease note the shaking-layers folder appear to only contain folders so you may want to toggle the Include Subfolders parameter to 'Yes' if you wish to download files within subfolders.


gisgeek
Contributor
Forum|alt.badge.img+9
  • Author
  • Contributor
  • November 27, 2022

Hello @gisgeek​ 

It appears you may have confused the bucket with path and vice versa. The bucket value should be josh-public-bucket-test and the path value should shaking-layers. You do not need to specify the region or parts such as s3/amazonaws.com when entering the value for bucket name as the transformer takes care of these parts.

Example setup for S3Connector. Do not include the region or s3/amazonaws.com parts with the bucket namePlease note the shaking-layers folder appear to only contain folders so you may want to toggle the Include Subfolders parameter to 'Yes' if you wish to download files within subfolders.

Thanks so much I knew it was something simple. Works a charm now. Thanks so much for your help