diff --git a/terraform/monitor/main_common_data.tf b/terraform/monitor/main_common_data.tf index 1a7ec2c..2861c52 100644 --- a/terraform/monitor/main_common_data.tf +++ b/terraform/monitor/main_common_data.tf @@ -2,4 +2,3 @@ # my account id/region #-------------------------------------------------------------- data "aws_caller_identity" "current" {} -data "aws_region" "current" {} diff --git a/terraform/monitor/main_common_lambda.tf b/terraform/monitor/main_common_lambda.tf index f77de87..a9066ba 100644 --- a/terraform/monitor/main_common_lambda.tf +++ b/terraform/monitor/main_common_lambda.tf @@ -61,14 +61,6 @@ POLICY name = "${var.name_prefix}${lookup(var.common_lambda.log.aws_sns_topic, "name")}" } ) - aws_sns_topic_subscription_metric = merge(var.common_lambda.aws_sns_topic_subscription, { - endpoint = module.aws_recipes_lambda_create_lambda_metric.arn - } - ) - aws_sns_topic_subscription_log = merge(var.common_lambda.aws_sns_topic_subscription, { - endpoint = module.aws_recipes_lambda_create_lambda_log.arn - } - ) } #-------------------------------------------------------------- # Create role and policy for Lambda