From 697659207d30f90ca52a59042f3211b57464451e Mon Sep 17 00:00:00 2001 From: carnal0wnage Date: Sat, 7 Apr 2018 14:24:13 -0400 Subject: [PATCH] cloudwatch stuff --- modules/cloudwatch.py | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 modules/cloudwatch.py diff --git a/modules/cloudwatch.py b/modules/cloudwatch.py new file mode 100644 index 0000000..25c255f --- /dev/null +++ b/modules/cloudwatch.py @@ -0,0 +1,15 @@ +''' +example calling cloudwatch functions +decribe alarms, describe alarm history, list metrics +''' +from libs.cloudwatch import * +from config import AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY + +def step_cloudwatch_describe_alarms(): + describe_alarms(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) + +def step_cloudwatch_describe_alarm_history(): + describe_alarm_history(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY) + +def step_cloudwatch_list_metrics(): + list_metrics(AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY)