instance-scheduler-on-aws icon indicating copy to clipboard operation
instance-scheduler-on-aws copied to clipboard

AWS Instance Scheduler solution in multi-account, multi-region environment for RDS and EC2 Maintenance windows

Open rajender025 opened this issue 4 years ago • 2 comments

I need to deploy AWS Instance Scheduler multi-account, multi-region environment.

The documentation states that: "When you specify the name of a maintenance window that exists in the same account and AWS Region as your scheduled Amazon EC2 and RDS instances"

Specifically, I have many accounts: eg: for example i taken 3 accounts. A(Primary Account). The account where the AWS Instance Scheduler solution is deployed in us-east-1. It has cross-account roles defined for accounts B and C. B(Child Account). An account with EC2 SSM maintenance window and RDS instances maintenance window in in us-east-1, eu-west-1 and ap-southeast-1 regions. C(Child Account). An account with EC2 SSM maintenance window and RDS instances maintenance window in in us-east-1 ,eu-west-1 and ap-southeast-1 regions

Child accounts are not working as It's not reading Maintenance windows. **To accomplish this task i need to deploy AWS Instance Scheduler solution in all the child accounts and in all the 3 regions?

rajender025 avatar Nov 03 '20 20:11 rajender025

Hi @rajender025 ,

Currently the solution supports the maintenance window created in the account and region where the stack is deployed.

For your use case please refer the github issue for more details https://github.com/awslabs/aws-instance-scheduler/issues/173 and the workaround here https://github.com/awslabs/aws-instance-scheduler/issues/173#issuecomment-660333071

Currently this is the limitation with the solution. We have added this to our backlog for a future release to support maintenance window in the account/region where instance is running.

Please let me know if this works for you.

Thanks, Praveen

praveenis avatar Nov 12 '20 08:11 praveenis

@rajender025 This issue has be resolved in the v1.4.0 release, solution will fetch the maintenance window from the account + region where the ec2 instance is deployed.

gockle avatar Sep 01 '21 14:09 gockle