From ce981593ecc3f88d5b26f632e8aa5e504b4bbb66 Mon Sep 17 00:00:00 2001 From: xss Date: Wed, 16 Nov 2022 13:27:34 +1100 Subject: [PATCH] Logging reduction --- ingestion.tf | 101 ++++++++++++++++++- lambda/sns_to_mqtt/__init__.py | 120 ++++++++++++++++------- lambda/sns_to_mqtt/__main__.py | 7 +- lambda/sonde_api_to_iot_core/__init__.py | 108 +++++++++++++++----- lambda/sonde_api_to_iot_core/__main__.py | 6 +- 5 files changed, 278 insertions(+), 64 deletions(-) diff --git a/ingestion.tf b/ingestion.tf index 94feb6f..67061ff 100644 --- a/ingestion.tf +++ b/ingestion.tf @@ -1,3 +1,100 @@ + +resource "aws_iam_role" "ingestion_lambda_role" { # need a specific role so that we can disable cloudwatch logs + path = "/service-role/" + name_prefix = "sonde-ingestion-" + assume_role_policy = <