Reputation: 776
Situation:
Link:
https://s3.just-an-example-region-for-this-post-1.amazonaws.com/my-bucket/server/func-helloworld.zip
When I create a new Lambda function and chose Upload a .ZIP from Amazon S3
and continue I get:
Trouble uploading file: Invalid S3 URL.
The zip file is accessible for everyone. I can download the zip file.
I can't find a good example on how this link should look like.
I found this: https://forums.aws.amazon.com/thread.jspa?messageID=468968񲟨
But I don't understand where to get my file in a format like mentioned in the thread.
Upvotes: 4
Views: 4097
Reputation: 776
That was fun... S3 and Lambda need to be in the same region. I thought just downloading a file from S3 would work no matter which region. Doesn't. Now I know.
I tried it step by step via the web console. Now that I read the CLI docs it says it everywhere... damn. Should have tried the CLI first.
Upvotes: 4