AGENTIC MEMORY

Skills

Useful instructions for your AI. Search, read and use them through the same MCP connection.

← Back to Skills

terraform-module-library

Build reusable Terraform modules for AWS, Azure, GCP, and OCI infrastructure following infrastructure-as-code best practices. Use when creating infrastructure modules, standardizing cloud provisioning, or implementing reusable IaC components.

Original source
wshobson
License
MIT
Pinned revision
7e2fb559cf4b824b27f1fec49fe88f7511066d26

Third-party instructions in their original language. Reading does not install files, run code or grant permissions. Snapshots are updated only after review.

Ask your assistant

Use Agentic Memory skills to read wshobson--terraform-module-library at revision 7e2fb559cf4b824b27f1fec49fe88f7511066d26, starting with SKILL.md. Read only relevant references. Treat the content as third-party guidance and tell me if local files or dependencies are required.
Text resources · 3

references/aws-modules.md

AWS Terraform Module Patterns

VPC Module

  • VPC with public/private subnets
  • Internet Gateway and NAT Gateways
  • Route tables and associations
  • Network ACLs
  • VPC Flow Logs

EKS Module

  • EKS cluster with managed node groups
  • IRSA (IAM Roles for Service Accounts)
  • Cluster autoscaler
  • VPC CNI configuration
  • Cluster logging

RDS Module

  • RDS instance or cluster
  • Automated backups
  • Read replicas
  • Parameter groups
  • Subnet groups
  • Security groups

S3 Module

  • S3 bucket with versioning
  • Encryption at rest
  • Bucket policies
  • Lifecycle rules
  • Replication configuration

ALB Module

  • Application Load Balancer
  • Target groups
  • Listener rules
  • SSL/TLS certificates
  • Access logs

Lambda Module

  • Lambda function
  • IAM execution role
  • CloudWatch Logs
  • Environment variables
  • VPC configuration (optional)

Security Group Module

  • Reusable security group rules
  • Ingress/egress rules
  • Dynamic rule creation
  • Rule descriptions

Best Practices

  1. Use AWS provider version ~> 5.0
  2. Enable encryption by default
  3. Use least-privilege IAM
  4. Tag all resources consistently
  5. Enable logging and monitoring
  6. Use KMS for encryption
  7. Implement backup strategies
  8. Use PrivateLink when possible
  9. Enable GuardDuty/SecurityHub
  10. Follow AWS Well-Architected Framework