From ef983767072052c3c66e11688f03d135d3782fbf Mon Sep 17 00:00:00 2001 From: Nathan Slaughter <28688390+nslaughter@users.noreply.github.com> Date: Fri, 5 May 2023 10:24:25 -0500 Subject: [PATCH] Update cloudtrail to use only UQL (#86) --- modules/cloudtrail-dashboard/main.tf | 40 ++++++++----------------- modules/cloudtrail-dashboard/outputs.tf | 2 +- 2 files changed, 14 insertions(+), 28 deletions(-) diff --git a/modules/cloudtrail-dashboard/main.tf b/modules/cloudtrail-dashboard/main.tf index 82beb1c..104f35f 100644 --- a/modules/cloudtrail-dashboard/main.tf +++ b/modules/cloudtrail-dashboard/main.tf @@ -8,7 +8,7 @@ terraform { required_version = ">= v1.0.11" } -resource "lightstep_metric_dashboard" "aws_cloudtrail_dashboard" { +resource "lightstep_dashboard" "aws_cloudtrail_dashboard" { project_name = var.lightstep_project dashboard_name = "AWS CloudTrail" @@ -18,19 +18,12 @@ resource "lightstep_metric_dashboard" "aws_cloudtrail_dashboard" { type = "timeseries" query { - query_name = "a" - display = "bar" - hidden = false - - metric = "aws.cloudtrail.units_sum" - timeseries_operator = "delta" - - - group_by { - aggregation_method = "sum" - keys = [] - } - + query_name = "a" + display = "line" + hidden = false + query_string = <