Guided Walkthroughs

Configuration Packages

AI CloudAdvisor (Beta)

By Implementation

Service Control PoliciesConfig RulesAuto Remediation RulesConformance PacksAmazon GuardDutyAmazon InspectorAWS Security HubAWS Network FirewallRoute53 Resolver SecurityAmazon MacieS3 Bucket PoliciesCloudWatch Alarms and Event RulesAWS WAFAWS Secrets ManagerAWS Systems ManagerSecurity Groups & NACLsAWS KMSAWS SSOIAM PoliciesVPC Endpoint PoliciesCloudFormation Guard RulesLoad BalancersRDS Event SubscriptionsAWS Resource Access Manager (RAM)

By Service Protected

Reference Guides


CloudWatch Alarms and Event Rules

Rejected SSH connections in VPC Alarm

A CloudWatch Alarm that triggers when there are rejected SSH connections in a VPC (Default: 10 connections per hour). Requires VPC flow logs to be enabled.

Prerequisites: This Alarm requires VPC Flow Logs to be enabled, with events sent to a CloudWatch Log Group. See Related Items for configuration to enable VPC Flow Logs with CloudWatch logging, or enter the CloudWatch Log Group name under the Metric Filter Configuration section.

Try out CloudAdvisor: Your AI-Powered Assistant for AWS Cloud

1.3 KB
Missing Parameters
AWSTemplateFormatVersion: "2010-09-09"
Description: ""
    Type: "AWS::SNS::Topic"
        - Endpoint: ""
          Protocol: "email"
      TopicName: "alarm-action"
    Type: "AWS::CloudWatch::Alarm"
      AlarmName: "cwalarm_rejected_ssh"
      AlarmDescription: "A CloudWatch Alarm that triggers when there are rejected SSH connections in a VPC (Default: 10 connections per hour). Requires VPC flow logs to be enabled."
      MetricName: "RejectedSSHCount"
      Namespace: "VPCFlowLogsMetrics"
      Statistic: "Sum"
      Period: "3600"
      EvaluationPeriods: "1"
      Threshold: "10"
      ComparisonOperator: "GreaterThanOrEqualToThreshold"
        - Ref: "SnsTopicMetricFilterCloudWatchAlarm"
      TreatMissingData: "notBreaching"
    Type: "AWS::Logs::MetricFilter"
      LogGroupName: ""
      FilterPattern: "[version, account, eni, source, destination, srcport, destport=\"22\", protocol=\"6\", packets, bytes, windowstart, windowend, action=\"REJECT\", flowlogstatus]"
        - MetricValue: "1"
          MetricNamespace: "VPCFlowLogsMetrics"
          MetricName: "RejectedSSHCount"
Parameters: {}
Metadata: {}
Conditions: {}


Customize Template

Action Settings

Metric Filter Settings

Alarm Configuration

* Required field

Upgrade to Premium for More Features
Sign up

Guided Walkthroughs
Step-by-step configuration wizards for your environment
Dedicated Security Account
AWS Backup Strategy
VPC Connectivity Setup
Automated Patching
All Guides
Configuration Packages
Pre-built packages for common configuration
Common SCPs
CloudFormation Guard Rules
Auto Remediation Rules
IAM Monitoring & Compliance
All Packages
Automated Assessments
  • 350+ security checks
  • Well-architected reviews
  • Detailed compliance reports
  • Remediation templates
  • Email summaries
  • Learn more