🗂️ Navigation
🔧 Pulumi CloudTrail Integration Policy

Pulumi CloudTrail Integration Policy

Manage AWS CloudTrail as code to enforce logging policies.

Visit Website →

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)

Enforcing a baseline security policy of universal API logging Creating an immutable audit trail for compliance (e.g., PCI DSS, HIPAA) Automating the setup of security monitoring and alerting Tracking resource changes across an entire AWS account

✅ 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

Terraform AWS Provider AWS Management Console

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

API

🔌 Integrations

AWS CloudTrail AWS S3 AWS CloudWatch Logs AWS KMS

💰 Pricing

Contact for pricing
Free Tier Available

Free tier: The Pulumi AWS provider is free. AWS charges for CloudTrail, S3 storage, and CloudWatch Logs based on usage.

Visit Pulumi CloudTrail Integration Policy Website →