I am trying to run the Lambda function to update in an s3 bucket. The s3 bucket that I am trying to start Lambda is in a separate AWS account.
The approach I tried is setting up a role in an account that with s3 bucket has all the privileges in s3 bucket. Then in the account with Lambda I have a role that takes a role in another account like this:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": [
"sts:AssumeRole"
],
"Resource": [
"arn:aws:iam::..."
]
}
]
}
I cannot see the s3 bucket in the list of buckets to trigger the Lambda event.
Is using the s3 bucket in a separate account to run Lambda? This is the right decision?
source
share