[{"data":1,"prerenderedAt":31},["ShallowReactive",2],{"snippet-eventbridge-schedule-groups":3},{"id":4,"title":5,"contributors":6,"description":8,"extension":9,"gitHub":10,"introBox":13,"languages":17,"meta":19,"resources":20,"services":21,"snippets":24,"stem":28,"tags":29,"type":18,"__hash__":30},"snippets\u002Fsnippets\u002Feventbridge-schedule-groups.json","Create and Organize Schedules Using Schedule Groups with AWS CLI",[7],"content\u002Fcontributors\u002Fsahithi-ginjupalli.json","Use AWS CLI to create Amazon EventBridge Scheduler schedule groups to organize and manage schedules, including creating groups with tags, adding schedules to groups, listing, and cleaning up","json",{"template":11},{"repoURL":12},"https:\u002F\u002Fgithub.com\u002Faws-samples\u002Fserverless-snippets\u002Ftree\u002Fmain\u002Feventbridge-schedule-groups",{"headline":14,"text":15},"How it works",[16],"This snippet demonstrates how to create and organize Amazon EventBridge Scheduler schedules using schedule groups via the AWS CLI. Schedule groups allow you to organize schedules by project, environment, or team using `aws scheduler create-schedule-group` with tags, then associate schedules to groups using the `--group-name` parameter. You can list groups and their schedules, and clean up by deleting schedules and groups.",[18],"AWS CLI",{},null,[22,23],"eventbridge-scheduler","lambda-event-functions",[25],{"title":26,"language":18,"code":27},"Create a schedule group with tags and add a schedule to it. Replace LAMBDA_ARN and EVENTBRIDGE_ROLE_ARN with your values","aws scheduler create-schedule-group \\\n  --name \"my-schedule-group\" \\\n  --tags Key=Environment,Value=Production Key=Team,Value=Backend\n\naws scheduler create-schedule \\\n  --name \"my-grouped-schedule\" \\\n  --group-name \"my-schedule-group\" \\\n  --schedule-expression \"rate(10 minutes)\" \\\n  --target '{\n    \"Arn\": \"&#60;LAMBDA_ARN&#62;\",\n    \"RoleArn\": \"&#60;EVENTBRIDGE_ROLE_ARN&#62;\"\n  }' \\\n  --flexible-time-window '{\"Mode\": \"OFF\"}'","snippets\u002Feventbridge-schedule-groups",[],"OUpVm-cZclPYw_hG4RhUmdSH9Dfap9_7XCSC9jy8E4Y",1792665263016]