Amazon EventBridge Scheduler to Start State Manager Association

Amazon EventBridge Scheduler → Systems Manager State Manager

This pattern will create an EventBridge Scheduler to start State Manager Association once in AWS Systems Manager every 5 minutes.

An EventBridge Scheduler is created that starts a State Manager Association once in an AWS Systems Manager every 5 minutes.
The demo Association will use an Automation Document "AWS-DisablePublicAccessForSecurityGroup" to revoke RDP and SSH public access in security group.
Along with a scheduler, the CDK stack creates VPC, security group, association, IAM role and policy for Automation and EventBridge Scheduler to assume and start association.

< Back to all patterns

GitHub icon Download this pattern (.zip)

GitHub icon View this pattern on GitHub


Clone repo

git clone https://github.com/aws-samples/serverless-patterns/cd serverless-patterns/eventbridge-schedule-ssm-cdk-java

Deploy

cdk deploy


Testing

See the GitHub repo for detailed testing instructions.

Cleanup

Delete the stack: cdk destroy.

Created by:

Hoi Wing Chan

Hoi Wing is a Technical Account Manager at Amazon Web Services with a background of software development and architecture.

Follow on LinkedIn