How jakeasaurus/terraform works
Project type and purpose
• This is a library of reusable Terraform modules targeting AWS resources.
• Each folder at the top level (ec2_server_2019_use1, s3_bucket, s3_website_cloudfront, s3_website_no_cloudfront, session_manager) is a standalone module that provisions a specific AWS service or pattern.
• The repository itself is an open-source Terraform module registry (MIT-licensed) that other teams reference via source = "github.com/jakeasarus/terraform/INSERT-MODULE-HERE".
File structure
• Top-level directories = individual modules.
• Each module has:
– main.tf (defines resources)
– variables.tf (module inputs)
– outputs.tf (module outputs)
– examples/ (sample root-level Terraform that instantiates the module)
– some also include policy.json or other ancillary files (e.g., CloudFront policy).
• Supporting files:
• .gitignore, LICENSE, root README.md – global docs and license.
• github-workflows/terraform-fmt-commit.yml – CI step to auto-format Terraform code.
README
• Confirms the repo is purely a catalog of modules for others to reference.
• No single “application” or runtime; instead it delivers Terraform code that will be plugged into a larger infrastructure repo.
Detail
• Example configurations under each module to show testing/validation.