menu
techminis

A naukri.com initiative

google-web-stories
Home

>

Cloud News

>

Use Amazon...
source image

Dev

2w

read

278

img
dot

Image Credit: Dev

Use Amazon Q developer and AWS Infrastructure Composer to automate the monitoring of available IP addresses in Subnets.

  • The author details a solution to monitoring the available IP addresses in subnets without the use of IPAM by utilising Amazon Q Developer and AWS Infrastructure Composer  and discusses a problem which arises from IP exhaustion when subnets run out of IPs.
  • The author created a Lambda Function which obtains data on subnet, IP address, and name. This data is returned to AWS EventBridge which uses CloudWatch metrics to validate available IP addresses.
  • In order to monitor the IP utilization, the script sends cloudwatch metrics to the CloudWatch console via the cloudwatch.put_metric_data method.
  • The deployment process was designed using AWS Infrastructure Composer which allows infrastructure to be visualised and to generate Infrastructure as Code that can be deployed using AWS Serverless Application Model (AWS SAM).
  • Parameters for the deployed solution include the VPC ID, CloudWatch Metric Namespace, email address to receive alerts, and more.
  • The author also demonstrates a demo of the solution by showing how IP utilization can be monitored in CloudWatch when triggered by an alarm.
  • The author suggests that notifications can be sent to other platforms, such as Slack or PagerDuty.
  • The author hopes that this automation solution will assist someone who wishes to monitor IP address utilization in subnets without using IPAM.
  • However, the author wishes that metrics straight from CloudWatch were available.
  • The author calculated the cost, which appears to be quite reasonable.

Read Full Article

like

16 Likes

For uninterrupted reading, download the app