Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error creating lambda outside us-east-1 #13

Open
jzucker-ness opened this issue Oct 6, 2021 · 0 comments
Open

error creating lambda outside us-east-1 #13

jzucker-ness opened this issue Oct 6, 2021 · 0 comments

Comments

@jzucker-ness
Copy link

After that i am trying to create the lambda function by using the cloud formation template by using the provided template from the git repo https://github.com/jimzucker/aws-forecast/blob/main/get_forecast_cf.yaml

While creating the cloud formation stack by using the template i am getting the following error:

getForecastLambda CREATE_FAILED

Resource handler returned message: "Error occurred while GetObject. S3 Error Code: PermanentRedirect. S3 Error Message: The bucket is in this region: us-east-1. Please use this region to retry the request (Service: Lambda, Status Code: 400, Request ID: 93a27aa3-519f-4fc8-aff0-7431f1588832, Extended Request ID: null)" (RequestToken: 0b4cf6b3-9ff5-97e4-4a25-639d3784676b, HandlerErrorCode: InvalidRequest)

As per my understanding the Amazon S3 bucket in the same AWS Region as your function. The bucket can be in a different AWS account. I am trying to create this lambda function from us-west-2 region and I hope the https://s3.amazonaws.com/jimzucker-github-getforecast/get_forecast.zip is hosted in us-east-1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant