Posts

EC2 process issues detection and alerting

Image
Process issues detection on EC2 instances       This stack would deploy the following resources in target AWS account   AWS SSM documents – These documents are used to configure CloudWatch agent on Linux and Windows hosts   Lambda function, IAM role for the lambda function and CloudWatch log group   CloudWatch alarms for each process that need to be monitored   SNS topics/subscriptions      Usage   Prerequisites - make sure the target instance/s are managed through aws ssm and has an IAM role with a policy which capable of writing metrics data to C loud W atch and read files from config data s3 bucket ( CloudWatchAgentAdminPolicy , CloudWatchLogsFullAccess , AmazonS3ReadOnlyAccess) .    Note that this so lution does not require for you to have SSH/RDP keys/credentials to deploy the configurations.   Navigate to the configs directory and modify the config.json file in the linux /windows directories based on the OS / platform of the target instance.   Th is CloudWatch agent