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