Repository navigation
Open
Open
Copy link
Labels
EnhancementNew feature or requestLevel of Effort - MediumModerate task requiring thought and testing; typically takes a couple of days to a weekPriority - LowMinor polish, typo fixes, or technical debt; nice to have; pick up when time permitsScope - BlueprintRelated to solution blueprints in the blueprints directoryScope - FastRelated to Fabric FAST deployment stages in the fast directoryScope - ModuleRelated to reusable Terraform modules in the modules directory
Description
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.hclfile enables therecommendedpreset, 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: 62terraform_unused_declarations, 3terraform_deprecated_interpolationand 1terraform_typed_variables. - tflint also fails to load
blueprints/fedramp-high/cloud-scheduler-job, because it evaluatesbase64encode(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-jobevaluation, for example by guarding the null value. - Drop
--only=terraform_naming_conventionfromtools/tflint.shonce 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
Metadata
Metadata
Assignees
Labels
EnhancementNew feature or requestLevel of Effort - MediumModerate task requiring thought and testing; typically takes a couple of days to a weekPriority - LowMinor polish, typo fixes, or technical debt; nice to have; pick up when time permitsScope - BlueprintRelated to solution blueprints in the blueprints directoryScope - FastRelated to Fabric FAST deployment stages in the fast directoryScope - ModuleRelated to reusable Terraform modules in the modules directory
Activity