aws-solutions / instance-scheduler-on-aws

A cross-account and cross-region solution that allows customers to automatically start and stop EC2 and RDS Instances
https://aws.amazon.com/solutions/implementations/instance-scheduler-on-aws/
Apache License 2.0
541 stars 264 forks source link

Support for Israel(Tel Aviv) Region "il-central-1" #503

Closed veltz-avi closed 3 months ago

veltz-avi commented 9 months ago

Describe the bug

When I run the solution deployment in il-central-1 region (Tel Aviv) I get the following error

Resource handler returned message: "Error occurred while GetObject. S3 Error Code: IllegalLocationConstraintException. S3 Error Message: The unspecified location constraint is incompatible for the region specific endpoint this request was sent to. (Service: Lambda, Status Code: 400, Request ID: 38f42ebe-4909-4eba-9f12-61706bf9af09)" (RequestToken: 6bfd0154-9ebb-f698-a60b-594cf9f52c3f, HandlerErrorCode: InvalidRequest)

To Reproduce Deploy the solution in il-central-1 region (Tel Aviv)

Please complete the following information about the solution:

Screenshot 2023-12-18 at 21 48 04

hearde commented 9 months ago

Solutions do not yet support the il-central-1 region. You can work around this by uploading the assets to your own bucket, setting up appropriate access, and modifying the bucket path for the Lambda asset in the template to point to your uploaded assets.

The version of boto3 in the python 3.10 runtime is also old enough that it does not recognize il-central-1 as a valid region. If you are attempting this workaround you will also need to make a newer version of boto3 available to the Lambda Function(s) in this solution. I recommend doing that with a Layer.

veltz-avi commented 9 months ago

Thank you. Is there an ETA for il-central-1 region support?

hearde commented 9 months ago

Not at this time.

CrypticCabub commented 3 months ago

il-central-1 is now supported