Pulumi CloudTrail Integration Policy
Manage AWS CloudTrail as code to enforce logging policies.
Overview
While not a direct CrossGuard pack, managing AWS CloudTrail via Pulumi is a foundational aspect of policy enforcement. By defining CloudTrail as code, organizations can enforce the policy that all API actions in their AWS account are logged and monitored. This ensures a complete audit trail for security analysis, resource change tracking, and troubleshooting. A CrossGuard policy can then be written to ensure that every Pulumi stack includes a properly configured CloudTrail resource.
✨ Key Features
- Define CloudTrail configuration as code
- Ensure logging is enabled in all regions
- Integrate with CloudWatch Logs and S3 for log storage
- Enable log file validation
- Manage event selectors to fine-tune what is logged
🎯 Key Differentiators
- Manage logging infrastructure with general-purpose languages
- Can be combined with CrossGuard to enforce that logging is always enabled
- Version-controlled and auditable logging configuration
Unique Value: Codify your organization's logging and auditing policies by managing AWS CloudTrail declaratively, ensuring it is always on and correctly configured.
🎯 Use Cases (4)
✅ Best For
- A custom CrossGuard policy that fails any `pulumi up` if an `aws:cloudtrail:Trail` resource is not defined for the target account.
💡 Check With Vendor
Verify these considerations match your specific requirements:
- Real-time intrusion detection (CloudTrail is for auditing, not prevention)
🏆 Alternatives
Instead of relying on manual setup or separate scripts, managing CloudTrail with Pulumi integrates your audit policy directly into your infrastructure-as-code workflow, making it self-documenting and consistently enforced.
💻 Platforms
🔌 Integrations
💰 Pricing
Free tier: The Pulumi AWS provider is free. AWS charges for CloudTrail, S3 storage, and CloudWatch Logs based on usage.
🔄 Similar Tools in Pulumi Crossguard
Pulumi AWS Guard
Codifies best practices for AWS, allowing enforcement across Pulumi stacks....
Pulumi Azure Compliance Policies
Enforces common security and compliance policies (PCI DSS, ISO 27001, CIS) for Azure....
Pulumi Open Policy Agent (OPA) Integration
Enforce security, compliance, and best practices using the Rego language....
Pulumi Snyk Integration
Integrates Snyk's container scanning capabilities directly into the Pulumi workflow....
Pulumi Vault Provider
Manage Vault resources like policies, secrets, and auth methods using Pulumi....
Pulumi Best Practices Pack
A pre-built policy pack from Pulumi that enforces foundational security and governance....