escapedcat
escapedcat

Reputation: 776

Can not use zip from S3 for AWS Lambda

Situation:

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&#468968
But I don't understand where to get my file in a format like mentioned in the thread.

Upvotes: 4

Views: 4097

Answers (1)

escapedcat
escapedcat

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

Related Questions