A company runs a batch processing job on a schedule using AWS Lambda. The job processes files from an S3 bucket and writes results to another S3 bucket. Recently, the job has been failing with the error 'Access Denied' when trying to write to the destination bucket. The Lambda function's execution role has the following IAM policy attached:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": ["s3:GetObject",
"s3:ListBucket"
],
"Resource": ["arn:aws:s3:::source-bucket/*",
"arn:aws:s3:::source-bucket"
]
},
{
"Effect": "Allow",
"Action": ["s3:PutObject"
],
"Resource": "arn:aws:s3:::destination-bucket/*"
}
]
}The Lambda function also has a VPC configuration to access an RDS instance. The S3 buckets are in the same region. The Solutions Architect verified that the destination bucket policy does not deny access. What is the MOST likely cause of the 'Access Denied' error?