Skip to content

Commit

Permalink
enable terraform_deprecated_lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
jarpat committed Nov 27, 2023
1 parent f0037f4 commit 41908e8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
7 changes: 0 additions & 7 deletions linting-configs/.tflint.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
10 changes: 5 additions & 5 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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 = <<EOT
version: ${lookup(data.external.iac_tooling_version.result, "terraform_version")}
revision: ${lookup(data.external.iac_tooling_version.result, "terraform_revision")}
provider-selections: ${lookup(data.external.iac_tooling_version.result, "provider_selections")}
outdated: ${lookup(data.external.iac_tooling_version.result, "terraform_outdated")}
version: ${data.external.iac_tooling_version.result["terraform_version"]}
revision: ${data.external.iac_tooling_version.result["terraform_revision"]}
provider-selections: ${data.external.iac_tooling_version.result["provider_selections"]}
outdated: ${data.external.iac_tooling_version.result["terraform_outdated"]}
EOT
}
}
Expand Down

0 comments on commit 41908e8

Please sign in to comment.