How do I monitor AWS VPN tunnels using Amazon CloudWatch alarms?

Lesedauer: 2 Minute
0

I want to configure Amazon CloudWatch alarms to monitor my AWS VPN tunnels, and then receive notifications when my AWS VPN connection is down.

Short description

You can monitor the status of an AWS VPN through its metric data, which is automatically sent to CloudWatch. The VPN tunnel state is reported as a Boolean value in the CloudWatch metric TunnelState, where 0 indicates that the tunnel is down and 1 indicates that the tunnel is up. You can set up a CloudWatch alarm based on this CloudWatch metric to notify you when one or both VPN tunnels are down.

Resolution

After you set up your AWS VPN and both tunnels are available, you can configure a CloudWatch alarm to monitor the connection.

If you haven't already set up a topic for this alarm in Amazon Simple Notification Service (Amazon SNS), create an Amazon SNS topic, and then subscribe to the topic.

Next, create a CloudWatch alarm to monitor the VPN tunnel state.

Optional: Test your alarm by making the tunnels of your AWS VPN unavailable to invoke a notification from your SNS topic.


Related information

Monitoring VPN tunnels using Amazon CloudWatch

How do I check the current status of my VPN tunnel?

AWS OFFICIAL
AWS OFFICIALAktualisiert vor 5 Jahren