Using Console
“CreateInternetGateway”
, “AttachInternetGateway”
or “DeleteInternetGateway”
.VPCGatewayConfigChanges
.CloudTrailMetrics
.GatewayEventCount
for the metric identifier.1
.>= (greater than or equal to)
from the dropdown list and enter 1
as the threshold value to trigger the alarm every time a configuration change involving a VPC Network Customer/Internet Gateway is made. - In the Actions section, click the + Notification button, select State is ALARM
from the Whenever this alarm dropdown menu, and choose the AWS SNS topic name created at Step 1 from Send notification to. - In the Alarm Preview section, select 5 Minutes
from the Period dropdown list and Sum
from the Statistic list. - Review the CloudWatch alarm configuration details, then click Create Alarm. Once created, the new alarm will be listed on the Alarms page.Using CLI
Using Python
put_metric_filter
method: