# Optimize SQL Workloads with Amazon CloudWatch The script takes an instance-id list as input, and it will create a dashboard with all the attached EBS volumes and their limits. The automatic annotation function will create a red line that indicates the maximum of each resource. To use the script, run the following code snippet. ``` # Download the script locally wget -L https://raw.githubusercontent.com/aws-samples/amazon-ec2-mssql-workshop/master/resources/code/Monitoring/create-cw-dashboard.py # Prerequisites (venv and boto3) python3 -m venv env # Optional source env/bin/activate # Optional pip3 install boto3 # Required # Execute python3 create-cw-dashboard.py --InstanceList i-example1 i-example2 --region eu-west-1 ``` Here is an example of the output ![example](example.png) You will need to make sure you have an access key, and secret key configured on the machine see [Link](https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_access-keys.html) and Python3 installed.