From 41908e8ed32f23584b3dc3012683ced9b132ee1b Mon Sep 17 00:00:00 2001 From: jarpat Date: Mon, 27 Nov 2023 15:44:42 -0500 Subject: [PATCH] enable terraform_deprecated_lookup --- linting-configs/.tflint.hcl | 7 ------- main.tf | 10 +++++----- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/linting-configs/.tflint.hcl b/linting-configs/.tflint.hcl index 41d6a8bf..7b6e4873 100644 --- a/linting-configs/.tflint.hcl +++ b/linting-configs/.tflint.hcl @@ -130,10 +130,3 @@ rule "terraform_unused_required_providers" { rule "terraform_workspace_remote" { enabled = true } - -# Disallow deprecated lookup function usage without a default. -# temporarily disabling for the 8.0.0 release, will fix in following release. -# See IAC-1227 -rule "terraform_deprecated_lookup" { - enabled = false -} diff --git a/main.tf b/main.tf index 24c0f130..a6cb31b0 100755 --- a/main.tf +++ b/main.tf @@ -44,14 +44,14 @@ resource "kubernetes_config_map" "sas_iac_buildinfo" { } data = { - git-hash = lookup(data.external.git_hash.result, "git-hash") + git-hash = data.external.git_hash.result["git-hash"] timestamp = chomp(timestamp()) iac-tooling = var.iac_tooling terraform = <