From 1d28dbf3615cd910b70223edc22ce74d284eaa29 Mon Sep 17 00:00:00 2001 From: Lukas Pustina Date: Fri, 28 Dec 2018 14:47:42 +0100 Subject: [PATCH] Add AWS module --- aws-watchtower/src/{ => aws}/kms.rs | 0 aws-watchtower/src/aws/mod.rs | 1 + aws-watchtower/src/config.rs | 2 +- aws-watchtower/src/lib.rs | 2 +- 4 files changed, 3 insertions(+), 2 deletions(-) rename aws-watchtower/src/{ => aws}/kms.rs (100%) create mode 100644 aws-watchtower/src/aws/mod.rs diff --git a/aws-watchtower/src/kms.rs b/aws-watchtower/src/aws/kms.rs similarity index 100% rename from aws-watchtower/src/kms.rs rename to aws-watchtower/src/aws/kms.rs diff --git a/aws-watchtower/src/aws/mod.rs b/aws-watchtower/src/aws/mod.rs new file mode 100644 index 0000000..5550fd5 --- /dev/null +++ b/aws-watchtower/src/aws/mod.rs @@ -0,0 +1 @@ +pub mod kms; diff --git a/aws-watchtower/src/config.rs b/aws-watchtower/src/config.rs index 9af38fa..686b2ab 100644 --- a/aws-watchtower/src/config.rs +++ b/aws-watchtower/src/config.rs @@ -1,5 +1,5 @@ use crate::asg_mapping::Mappings; -use crate::kms; +use crate::aws::kms; use crate::WatchAutoscalingError; use clams::config::*; diff --git a/aws-watchtower/src/lib.rs b/aws-watchtower/src/lib.rs index 5271fab..8f892ff 100644 --- a/aws-watchtower/src/lib.rs +++ b/aws-watchtower/src/lib.rs @@ -14,7 +14,7 @@ pub mod config; pub mod error; mod events; mod init; -mod kms; +mod aws; mod lambda; // Use a counter, in case we want to track how often the function gets called before getting cold