AWS Terraform Best Practices

•
4
•

Optimizes AWS infrastructure using professional Terraform patterns, security-first IAM policies, and modern CI/CD workflows.

The terraform-aws skill empowers Claude with specialized knowledge for architecting, reviewing, and implementing AWS infrastructure using Terraform and OpenTofu. It enforces industry-standard patterns such as logical module encapsulation, least-privilege IAM roles, and OIDC-based CI/CD pipelines to eliminate static credentials. By leveraging modern features like S3-native state locking and ephemeral secret resources (Terraform 1.10+), it helps developers avoid common pitfalls like 'confused deputy' vulnerabilities, over-scoped permissions, and exposed secrets in state files.

主要功能

01Automates CI/CD pipeline design for GitHub Actions with environment protection and drift detection.
02Supports modern Terraform 1.10+ features including S3-native locking and ephemeral resources for secrets.
03Implements least-privilege IAM policies and OIDC federation to eliminate static AWS access keys.
044 GitHub stars
05Provides optimized module structures that encapsulate logical groupings like Lambda, IAM, and logging.
06Enforces security best practices through Checkov-aligned configurations and 'confused deputy' protections.

使用场景

01Migrating legacy Terraform state management to modern S3-native locking patterns without DynamoDB.
02Conducting security audits of existing IaC to identify wildcard IAM permissions and unencrypted resources.
03Architecting a secure, multi-environment AWS Serverless stack with API Gateway, Lambda, and DynamoDB.