https://github.com/dryvist/tf-splunk-aws
Cost-optimized Terraform/Terragrunt infrastructure deploying Splunk on AWS. Features VPC isolation, encrypted storage, least-privilege IAM policies, and comprehensive documentation. Manages ~22 AWS resources with minimal monthly cost (~.80). Modular DRY configuration patterns.
https://github.com/dryvist/tf-splunk-aws
aws cloud-infrastructure cost-optimization devops documentation ebs ec2 encryption iac iam infrastructure-as-code modular-architecture security splunk terraform terragrunt vpc
Last synced: about 10 hours ago
JSON representation
Cost-optimized Terraform/Terragrunt infrastructure deploying Splunk on AWS. Features VPC isolation, encrypted storage, least-privilege IAM policies, and comprehensive documentation. Manages ~22 AWS resources with minimal monthly cost (~.80). Modular DRY configuration patterns.
- Host: GitHub
- URL: https://github.com/dryvist/tf-splunk-aws
- Owner: dryvist
- License: apache-2.0
- Created: 2025-05-31T10:49:28.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-05-29T02:50:50.000Z (5 days ago)
- Last Synced: 2026-05-29T04:22:40.448Z (5 days ago)
- Topics: aws, cloud-infrastructure, cost-optimization, devops, documentation, ebs, ec2, encryption, iac, iam, infrastructure-as-code, modular-architecture, security, splunk, terraform, terragrunt, vpc
- Language: HCL
- Size: 529 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Agents: AGENTS.md
Awesome Lists containing this project
README
# TF-Splunk-AWS
[](https://github.com/JacobPEvans/tf-splunk-aws/actions/workflows/terraform.yml)
[](LICENSE)
Cost-optimized Splunk infrastructure on AWS using OpenTofu and Terragrunt.
**~$8.54–$17.67/month** (optional auto-lifecycle). Long-term archive is handled
by Cribl writing directly to S3 outside this module.
## What & Why
**What**: Production-ready Splunk deployment on AWS with modular Terraform architecture
**Why**: Demonstrates cost optimization, infrastructure-as-code best practices, and security-first design
## Quick Facts
- **Cost**: ~$17.67/month always-on; ~$8.54/month with `enable_auto_lifecycle = true`
- **Architecture**: 4 modules (network, security, compute, splunk)
- **Deployment**: Terragrunt-managed with remote state
- **Security**: Encrypted storage, IAM least privilege, VPC isolation
## Cost Breakdown
| Resource | Always-On | Auto-Lifecycle |
| -------- | --------- | -------------- |
| NAT Instance (t4g.nano) | $2.52 | $2.52 |
| Splunk Instance (t4g.small) | $12.18 | ~$3.05 (25% utilization) |
| EBS Storage (70GB GP3) | $2.97 | $2.97 |
| **Total** | **~$17.67** | **~$8.54** |
Index data lives on the local EBS volume. Cribl handles long-term archive to S3
out-of-band, so this module no longer manages a SmartStore bucket.
Auto-lifecycle (`enable_auto_lifecycle = true`) starts Splunk every 4 hours for 60 minutes.
## Quick Start
```bash
cd terragrunt/dev
terragrunt plan # Review 22 resources
terragrunt apply # Deploy infrastructure
```
## Documentation
| Document | Purpose | Read Time |
| -------- | ------- | --------- |
| **[Project Scope](.copilot/PROJECT.md)** | Business context, constraints | 2 min |
| **[Architecture](.copilot/ARCHITECTURE.md)** | Technical decisions, current state | 5 min |
| **[Implementation](modules/README.md)** | Module details, developer guide | 10 min |