Skip to main content
Pulumi logo Pulumi logo
  1. Docs
  2. Administration
  3. Guides
  4. Audit Logs
  5. Export to AWS S3 (or S3-compatible)

Export audit logs to AWS S3

This Pulumi Cloud feature is available in the Enterprise edition.

    Pulumi Cloud can continuously export audit log events to an Amazon S3 bucket. Once configured, new events are delivered automatically — no manual downloads or API polling required.

    Configure export using the console

    AWS S3

    1. Navigate to the organization’s Settings.

    2. Navigate to Audit Logs.

    3. Use the three-dot menu and select Configure export to Amazon S3 / S3-compatible.

      Audit log export menu showing the Configure Audit Logs to S3 option
    4. Select Amazon S3.

    5. Follow the instructions to create an AWS S3 bucket.

    6. Provide a bucket name and a filepath where Pulumi audit logs will be exported, e.g., Pulumi-audit-logs.

    7. Copy the provided policy.

    8. In the AWS console create an IAM role.

    9. Select Another AWS Account and check Require external ID.

    10. Provide the Account ID and External ID, then attach the policy you created.

    11. Provide the ARN of the IAM role.

    12. Test your configuration.

      Testing the audit log export configuration
    13. After a successful test, select Save and apply configuration.

    14. After an hour, verify that logs have successfully started exporting.

      Successful audit log export configuration

    S3-compatible service

    Pulumi Cloud can also export audit logs to a storage service that implements the Amazon S3 API. Pulumi Cloud authenticates to the service with an access key instead of an IAM role.

    1. Navigate to the organization’s Settings.
    2. Navigate to Audit Logs.
    3. Use the three-dot menu and select Configure export to Amazon S3 / S3-compatible.
    4. Select S3-compatible service.
    5. Provide the Endpoint URL of the service. The endpoint must use https and must be reachable from Pulumi Cloud.
    6. Optionally, provide the Region that the service uses to sign requests. If you leave it empty, Pulumi Cloud uses us-east-1.
    7. Provide a Bucket name and a File path prefix where Pulumi audit logs will be exported.
    8. Create an access key that can write objects under the file path prefix, then provide its Access key ID and Secret access key.
    9. Test your configuration.
    10. After a successful test, select Save and apply configuration.
    11. After an hour, verify that logs have successfully started exporting.

    Pulumi Cloud encrypts the secret access key and never shows it again. To change other settings later, leave Secret access key empty and Pulumi Cloud keeps the saved secret. If you change the endpoint URL or the access key ID, you must provide the secret access key again.

    On a self-hosted installation, to export to a service on a private network, list AUDIT_LOG_EXPORT in PULUMI_DISABLE_SSRF_PROTECTION. See SSRF protection.

      The infrastructure platform for humans and agents.