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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠