Writing to S3 bucket from Lambda, same account, “InvalidARN" message

0

Been digging through tutorials for days, but they all say the same thing, and it seems like I should be in slam dunk territory here, but I get the following error whenever I try to read or write from my S3 bucket.

“InvalidARN: ARN accountID does not match regex ”[0-9]{12}“”

I only have one AWS account, so my lambda function should be owned by the same account as my S3 bucket. I have given my lambda role s3:GetObject and PutObject permissions, as well as just s3:*, I have verified that my S3 bucket policy is not denying access explicitly, but nothing changes the message.

I am new to AWS policies and permissions, but google isn't giving up a lot of other people getting this message. I don't know where I am supposed to be supplying my AccountID or why it isn't already there. Would be grateful for any insights.

已提問 3 年前檢視次數 1060 次
1 個回答
0

Whoops! Turns out in the end it was a bad bucket name. I was using the full ARN instead of just the short name. :-p

已回答 3 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南