tf-locals

Generate Terraform locals.tf files for AWS modules from JSON configurations.

1|Updated Apr 30, 2026
One-click install
npx skills add https://github.com/subhamay-bhattacharyya/aws-csv-data-pipeline --skill tf-locals
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tf-locals
Source: https://github.com/subhamay-bhattacharyya/aws-csv-data-pipeline/tree/main/.claude/skills/tf-locals
Command: npx skills add https://github.com/subhamay-bhattacharyya/aws-csv-data-pipeline --skill tf-locals

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the creation of locals.tf files for AWS Terraform modules by automating the inclusion of standardized local configurations and resource naming patterns.

Core Features & Use Cases

  • Automated locals file generation: Produces consistent and maintainable locals.tf files based on project variables and JSON configs.
  • Supports multiple resource patterns: Includes default tags, KMS aliases, S3 bucket configs, and IAM role setups.
  • Use Case: When setting up a new AWS Terraform module, quickly generate a locals.tf that adheres to best practices and naming conventions without manual coding.

Quick Start

Use this skill to generate a locals.tf file in the specified module directory, configured with project details and resource patterns.

Frequently Asked Questions about tf-locals

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate a locals.tf file for AWS Terraform modules?

You generate a locals.tf file for AWS Terraform modules by using this Skill to automate parsing external JSON configurations, define naming conventions, and apply standard tags across resources ensuring consistent infrastructure setups.

What is the best way to standardize resource naming conventions in Terraform?

Standardizing resource naming conventions in Terraform is achieved by generating a locals.tf file that parses external JSON configurations and defines consistent naming patterns for AWS modules without manual coding.

Can I apply default tags to AWS resources using Terraform locals?

You can apply default tags to AWS resources using Terraform locals by generating a locals.tf file that includes standard tag configurations, KMS aliases, S3 bucket configs, and IAM role setups.

Does this Terraform locals generator support parsing external JSON configurations?

This Terraform locals generator supports parsing external JSON configurations to produce consistent and maintainable locals.tf files based on project variables and JSON configs.

How do I set up consistent infrastructure patterns for S3 and IAM in Terraform?

You set up consistent infrastructure patterns for S3 and IAM in Terraform by generating a locals.tf file that includes default S3 bucket configs and IAM role setups adhering to best practices and naming conventions.

When do I need to use locals in Terraform for AWS modules?

You need to use locals in Terraform for AWS modules when setting up new infrastructure and wanting to quickly generate a locals.tf file that adheres to best practices and naming conventions without manual coding.