From d6490566c03ad2bb8fea353d02f10408e22c380f Mon Sep 17 00:00:00 2001 From: Bryan Alexander Date: Tue, 24 Aug 2021 18:36:43 -0500 Subject: [PATCH] fixes issue with type name --- handler/helpers/helpers.go | 2 +- lambda.tf | 1 + s3.tf | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/handler/helpers/helpers.go b/handler/helpers/helpers.go index 0310f81..478f75b 100644 --- a/handler/helpers/helpers.go +++ b/handler/helpers/helpers.go @@ -408,7 +408,7 @@ func TypeToSheet(items interface{}) (string, error) { sheet = SheetTopics case *ssm.ParameterMetadata: sheet = SheetParameters - case *VpcPeers: + case *VpcPeer: sheet = SheetVpcPeers default: log.Printf("Unknown sheet type: %T", val) diff --git a/lambda.tf b/lambda.tf index a1e588a..5790f47 100644 --- a/lambda.tf +++ b/lambda.tf @@ -1,3 +1,4 @@ +#tfsec:ignore:aws-lambda-enable-tracing resource "aws_lambda_function" "lambda_function" { filename = var.source_file function_name = local.app_name diff --git a/s3.tf b/s3.tf index cff1f66..aefea6d 100644 --- a/s3.tf +++ b/s3.tf @@ -2,6 +2,7 @@ locals { useAccessLogging = length(var.access_logging_bucket) > 0 ? [1] : [] } +#tfsec:ignore:AWS002 resource "aws_s3_bucket" "bucket" { bucket = local.app_name acl = "private" @@ -11,7 +12,6 @@ resource "aws_s3_bucket" "bucket" { enabled = true } - #tfsec:ignore:AWS002 dynamic "logging" { for_each = local.useAccessLogging content {