Skip to content

[Feature Request] Fix the tflint recommended preset findings and enforce the full preset #321

Description

@digitalresistor

Feature Description

Fix the findings that the tflint recommended preset reports today, then let tools/tflint.sh enforce the whole preset instead of only the terraform_naming_convention rule.

Use Case

  • The .tflint.hcl file enables the recommended preset, but CI never ran tflint until refactor(repo)!: adopt snake_case resource and kebab-case module labels #310, so findings accumulated.
  • On main, the preset reports 66 findings: 62 terraform_unused_declarations, 3 terraform_deprecated_interpolation and 1 terraform_typed_variables.
  • tflint also fails to load blueprints/fedramp-high/cloud-scheduler-job, because it evaluates base64encode(var.data) with a null default.

Proposed Solution

  • Remove or use the unused variables and locals, convert the deprecated interpolations, and type the remaining variable.
  • Fix the cloud-scheduler-job evaluation, for example by guarding the null value.
  • Drop --only=terraform_naming_convention from tools/tflint.sh once the findings reach zero.
  • Removing an unused variable breaks tfvars files that still set it, so each removal needs a note.

Compliance & Deployment Context

  • Target Deployment Type(s):
    • US Region Restricted (e.g., Access Policy constraint)
    • FedRAMP Moderate
    • FedRAMP High
    • DoD IL4
    • DoD IL5
    • All / General
  • Relevant NIST 800-53r5 Controls: CM-2 baseline configuration

Reusability Check

Stellar Engine prioritizes reusability.

  • I have checked if this functionality can be achieved by extending an existing module or blueprint.
  • I have verified that this does not duplicate existing functionality.

Alternatives Considered

  • Disable the noisy rules in .tflint.hcl, which hides real dead code.
  • Keep only the naming rule, which leaves the preset unenforced.

Additional Context

Activity

  1. added
    Enhancement
    Priority - Medium
    Level of Effort - Medium
    Scope - Module
    Scope - Fast
    Scope - Blueprint
    on Oct 20, 2026
  2. added
    Priority - Low
    and removed
    Priority - Medium
    on Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementLevel of Effort - MediumPriority - LowScope - BlueprintScope - FastScope - Module

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions