This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as sns from '@aws-cdk/aws-sns'; | |
import * as cdk from '@aws-cdk/core'; | |
import { Duration } from '@aws-cdk/core'; | |
import * as cloudwatch from '@aws-cdk/aws-cloudwatch'; | |
import { Ec2Action } from './ec2action'; | |
import { Metric } from '@aws-cdk/aws-cloudwatch'; | |
import { SnsAction } from '@aws-cdk/aws-cloudwatch-actions'; | |
import * as AWS from 'aws-sdk'; | |
class LombaXInstance { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion": "2010-09-09", | |
"Parameters" : { | |
"RecoveryInstance" : { | |
"Description" : "The EC2 instance ID to associate this alarm with.", | |
"Type" : "AWS::EC2::Instance::Id" | |
}, | |
"SNSTopic" : { | |
"Description" : "The SNS Topic ARN to send the alarm to", | |
"Type" : "String" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# check wake requests | |
pmset -g log | grep "Wake Requests" | |
# check wake logs | |
pmset -g log | grep darkwake | |
# statistics | |
pmset -g stats | |
# check if powernap is enabled |