This project creates or updates a CloudWatch dashboard to monitor API Gateway metrics using the AWS SDK for Node.js.
- Node.js (version 12.x or higher)
- npm (Node Package Manager)
- aws cli
-
Clone the Repository
git clone <your-repository-url>
-
Install Dependencies
npm install aws-sdk
-
AWS Configuration
Ensure you have AWS credentials configured. You can configure AWS credentials by using the AWS CLI or by setting environment variables.
aws configure
-
Update Region & API ID
Update the AWS region and API ID in the monitor.js.
-
Running the Script
node monitor.js