when deploying to a new region I’m getting the error
Could not locate deployment bucket. Error: Deployment bucket is not in the same region as the lambda function
This is unexpected since aws s3 buckets are global, not regional.
my serverless.yml file specifies the region, usually us-east-1, but trying to deploy to us-east-2.
service: api-access-mgmt
provider:
name: aws
#endpointType: regional
runtime: python3.6
stage: ${opt:stage, 'dev'}
region: us-east-2
versionFunctions: false
api_version: v1
role: ${file(../../config/env_configs.yaml):${self:provider.stage}.role}
memorySize: 128
environment: ${file(../../config/env_configs.yaml):${self:provider.stage}.environment}
deploymentBucket:
name: ${file(../../config/env_configs.yaml):${self:provider.stage}.deploymentBucket.name}
sns_topic_lambda_failure : ${file(../../config/env_configs.yaml):${self:provider.stage}.sns_topic_lambda_failure}
timeout: 30
I found a related post and but the suggestion to change the service name has no effect.