Hey support - getting am error `Error uploading to...
# support
a
Hey support - getting am error
Error uploading to S3: Error: MissingRegion: could not find region configuration
Any ideas where the config for this is?
I can't see any config for this property on the config generator.
q
@ambitious-journalist-66344 may i know the format of your bucket name
a
bucketname
. Does it need to be in the ARN or http format?
I can see it's using: https://docs.aws.amazon.com/sdk-for-go/api/service/s3/s3manager/#GetBucketRegion right? Will try to change to format to:
s3.ap-southeast-2.amazonaws.com/bucketname
Using the format:
s3.{region}.amazonaws.com/{bucketname}
still throws an error:
Copy code
ERROR BRT: Error uploading to S3: Error: MissingRegion: could not find region configuration
Will try the https style format now...
Now trying: format:
{bucketname}.s3.{region}.amazonaws.com
Still getting an error:
Copy code
2020-11-21T00:31:36.121Z ERROR BRT: Error uploading to S3: Error: MissingRegion: could not find region configuration
Anyone got ideas how to pass the Region parameter?
I tried setting the environment variable:
AWS_DEFAULT_REGION=ap-southeast-2
But that also didn't work :(
Oooooh okay - I think setting the env variable:
AWS_REGION=ap-southeast-2
works.
Not too sure how you approach if you have different regions - but hey - not a problem I have right now 🙂
Annnnd now I'm getting logs into S3 😄 Thanks!