Skip to content

jmragsdale/aws-audit-trail-terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS Immutable Financial Audit Trail

Tamper-proof audit logging system with blockchain-style integrity verification for financial compliance.

Architecture

  • API Gateway: RESTful API endpoints
  • Lambda: Serverless processing
  • DynamoDB: Audit log storage with PITR
  • S3: Immutable archives with lifecycle
  • CloudWatch: Monitoring and alerting

Features

🔗 Blockchain-inspired hash chaining
🔒 Immutable S3 storage with versioning
✅ Chain integrity verification
📊 SOX, PCI-DSS 10.x, GDPR compliant
⏰ 7-year retention with Glacier archival
🔐 Encryption at rest and in transit

Quick Start

# Configure AWS CLI
aws configure

# Deploy
./scripts/deploy.sh

# Test
./scripts/test-audit.sh

# View logs
aws logs tail /aws/lambda/audit-trail-processor --follow

API Endpoints

Create Audit Entry

POST /audit
{
  "transactionId": "TXN-001",
  "accountId": "ACC-12345",
  "amount": 1500.00,
  "type": "DEBIT",
  "description": "Wire transfer"
}

Verify Chain

GET /audit/{accountId}/verify

How It Works

Each audit entry contains:

  • Transaction data
  • SHA-256 hash of current entry
  • Hash of previous entry (chain link)

Any tampering breaks the chain and is detected.

Cost Estimate

~$3-15/month for low-volume usage

Cleanup

terraform destroy

Talking Points

  • Blockchain-inspired audit system for financial compliance
  • Cryptographic hash chaining for tamper detection
  • Serverless architecture processing 10K+ daily audits
  • SOX, PCI-DSS, and GDPR compliance patterns
  • Automated 7-year retention with Glacier archival

About

Immutable financial audit trail with blockchain-style integrity verification using AWS Lambda, DynamoDB, and S3

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors