This is a PoC project how Amazon EventBridge can be used to detect EC2 Spot instance interruptions. The infrastructure defined in lib/spot-instantce-event-detector-stack.ts consists of only two parts:
- An EventBridge Rule
- A Lambda function for logging the event triggered by the EventBridge Rule
npm install
npx cdk deploy