Search code examples
amazon-web-servicesamazon-s3aws-lambdaterraformterraform-provider-aws

Need to create a lambda function in Ohio region but the Jar is available in S3 Bucket of Virgina Region


How to access the S3bucket from Virgina region and upload the jar file to lambda function in ohio region.


Solution

  • This aws blog post from 2019 indicates that "Lambda requires the bucket to reside in the same AWS Region as the function". It has some recommendation on how you might work around that limitation with custom resources to automatically replicates lambda zips from one bucket/region into others.