generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8991 from ministryofjustice/Update_061224_3
Update 061224 3
- Loading branch information
Showing
2 changed files
with
18 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
# Python script to | ||
# Python script to retrieve cloudwatch metic data (cpu processes), graph it and email it to end users via the internal mail relay. | ||
# Nick Buckingham | ||
# 6 December 2024 | ||
|
||
import boto3 | ||
import os | ||
|
@@ -24,7 +26,7 @@ | |
END_TIME = datetime.utcnow() | ||
START_TIME = END_TIME - timedelta(hours=9) | ||
SENDER = "[email protected]" | ||
RECIPIENTS = ["[email protected]"] | ||
RECIPIENTS = ["[email protected]", "[email protected]", "[email protected]", "[email protected]", "[email protected]"] | ||
SUBJECT = f'AWS EC2 CPU Utilization Report - {SERVER} - {CURRENT_DATE}' | ||
REGION = "eu-west-2" | ||
IMAGE_ID = "ami-02f8251c8cdf2464f" | ||
|