Learning resourcesReviewed · Lovable

Lovable Amazon S3 log export guide

This guide helps Lovable Enterprise workspace administrators export logs to Amazon S3, but it requires an AWS bucket and carefully configured IAM permissions. It explains authentication without stored AWS keys, compressed JSON Lines output, connection checks and querying audit logs with Amazon Athena.

Researched 24 Nov 2026

In short.

Lovable's Amazon S3 export guide is a setup reference for Enterprise workspace administrators moving logs into AWS, with a workspace-specific IAM trust policy as its critical requirement. It documents short-lived credentials, permissions limited to an object prefix, connection checks, file organization and an Athena audit-log table. Schedules, complete source coverage, delivery guarantees and prices are not established by this page. No export, connection test or query was executed.

Researched and written by an AI model and checked by a second AI model. How it works

Coverage includes the complete supplied page at [https://docs.lovable.dev/features/data-exports-amazon-s3.md]: prerequisites, setup, the trust-policy warning, exported files, configuration changes, Athena guidance and troubleshooting. Linked documentation, the documentation index and live settings were not examined. No service actions or examples were executed. General scheduling behavior, full source coverage, prices, redistribution rights and actual export performance remain unknown or unverified as described.

The overview

identity

This is Lovable's documentation for configuring Amazon S3 as a destination for scheduled data exports. It teaches an existing feature rather than supplying a standalone application or installable integration. The original page is [https://docs.lovable.dev/features/data-exports-amazon-s3.md].

The page covers AWS access setup, exported files, an Amazon Athena example and destination-specific troubleshooting. General export sources, schedules and run behavior are delegated to another page.

assessment

The guide is useful when a team already uses Lovable Enterprise and wants log files in its own AWS account. It provides concrete setup steps and explains several operational traps, including mismatched prefixes, blocked cleanup and an incorrect trust-policy condition.

Its practical strength is the connection between configuration and troubleshooting. It does not establish export completeness, performance or reliability in a real deployment, and the S3 instructions alone are insufficient to evaluate scheduling and delivery behavior.

users

The direct audience is Lovable workspace administrators or owners on an Enterprise plan, working with someone who can create AWS IAM roles and attach policies. Developers and data engineers may also use the file-layout and Athena sections to consume exported logs.

Beginners receive a step-by-step setup sequence, but still need to identify a bucket, construct a role ARN and apply IAM policies. The page does not provide a general introduction to AWS IAM or S3.

capabilities

The documented feature writes gzipped JSON Lines files into an S3 bucket in the user's AWS account. Each run writes one file per export window, beneath folders identifying the workspace, export, source, run and window.

The guide describes configurable prefixes and role ARNs, automatic bucket-region discovery, connection checks, and pausing when a bucket disappears. It also supplies an Athena external-table example for audit logs. Other available export sources are not enumerated here.

Using it

requirements

Setup requires an existing S3 bucket, AWS IAM permission to create a role and attach a policy, and the workspace admin or owner role in Lovable on an Enterprise plan.

The role must trust accounts.google.com through web identity federation and use the trust policy generated by Lovable's setup panel. Its permissions policy allows s3:PutObject, s3:DeleteObject and s3:AbortMultipartUpload under the chosen prefix. The page says bucket-level permissions are unnecessary.

mechanism

Lovable assumes the AWS IAM role using short-lived credentials obtained through web identity federation with accounts.google.com. According to the page, Lovable stores no AWS keys. The generated trust policy restricts role assumption to Lovable's service account, the workspace and the specified role.

The workspace-specific audience condition uses accounts.google.com:oaud, not accounts.google.com:aud. The page warns that removing this condition could allow another Lovable workspace that knows the role ARN to assume the role.

The connection check writes and deletes a small object named .lovable-export-test beneath the prefix. Lovable repeats this check when the export is saved.

setup

Open [https://lovable.dev/settings/data-exports], start a new data export and select Amazon S3. Enter the bucket, optional prefix and intended role ARN. The ARN can be supplied before the role exists, allowing the setup panel to generate the policies.

Create the named IAM role for web identity with accounts.google.com. Apply the setup panel's trust policy unchanged, then attach its permissions policy. Choose the source, use Test connection and create the export.

If the role ARN changes later, update the trust policy. Before changing the prefix, update the permissions policy to cover the new location. A different bucket requires a new export.

example

The page illustrates an audit-log export to a bucket named acme-lovable-exports, with files ending in part-00000.jsonl.gz beneath workspace=, export=, source=audit_logs, run= and window= folders. These identifiers are examples; the Athena table location must use folder names copied from an actual exported object.

Its Athena example creates an external table with org.openx.data.jsonserde.JsonSerDe and points LOCATION at the source=audit_logs folder so queries include the runs and windows below it. The example enables ignore.malformed.json, a setting to review when assessing record completeness.

The query guidance converts timestamp text using from_iso8601_timestamp(replace("timestamp", ' ', 'T') || 'Z'), extracts values from the details JSON string with json_extract_scalar, and recommends deduplication by id. The example was not executed.

Assessment & evidence

limitations

The bucket cannot be changed on an existing export. If the bucket disappears, Lovable pauses the export and marks the run failed; the documented recovery is to fix the bucket and resume using the Schedule switch.

The page distinguishes the initial blank-prefix default, lovable-export/, from clearing an existing prefix later, which writes to the bucket root. It warns that the existing permissions policy then no longer covers the destination.

Missing delete permission can leave the test object behind and prevent cleanup after failed runs, although the page says the export can still be saved. Passing a write check therefore does not establish working cleanup.

The page recommends deduplication but does not explain when duplicate records arise. Export frequency, retries, backfill, retention, maximum volume, delivery guarantees and complete source schemas are not established here.

reasoning

The documented design suits teams that can coordinate Lovable administration with AWS access management. Short-lived credentials avoid storing AWS keys in Lovable, while the prefix policy limits the documented object permissions to a chosen location.

Operational suitability depends on preserving the workspace-specific trust condition and keeping the destination prefix aligned with IAM permissions. The guide supports configuring those controls, but it does not establish compliance with a particular standard or end-to-end log completeness.

alternatives

For querying exported files, the page documents Amazon Athena. It does not compare other query engines, export destinations, log platforms or direct-access methods.

There is insufficient evidence here to recommend a replacement or compare cost, latency and operational effort across alternatives.

evidence

The evidence is the complete Lovable documentation page at [https://docs.lovable.dev/features/data-exports-amazon-s3.md], captured on 2026-11-24. Its source revision is sha256:3836ed7def8bda7725ebb1ba59da0df267d10b1e4fa0ec772b472706c7efb0ec.

This is product documentation supporting descriptions of intended behavior. No AWS role, S3 export, connection check, Athena table or query was created or run, so actual operational results remain unverified.

Access & freshness

costs

The feature requires a Lovable Enterprise plan, but this page gives no subscription price or separate export charge. It also supplies no AWS storage, request, transfer or Athena query prices.

The total cost is unknown. Export volume, frequency and retention assumptions needed for a useful estimate are not established here.

rights

The page does not state a reuse licence or redistribution terms for its documentation or SQL example. Permission to redistribute those materials is therefore unknown.

The destination is a bucket in the user's AWS account, with access granted through an IAM role. This configuration does not establish contractual ownership, retention rights or permitted downstream uses of the exported log data.

freshness

The supplied capture is dated 2026-11-24. The page provides no explicit publication date, last-update date or feature version.

Dates embedded in sample file paths illustrate export naming and do not establish release history. Changes after the capture are unknown.

actions

Confirm Enterprise access, the Lovable admin or owner role, the destination bucket and IAM privileges. Preserve the generated trust policy, including accounts.google.com:oaud, and align the permissions policy with the intended prefix.

Use the documented connection check, inspect a resulting export object and assess write access, cleanup and query results separately. For audit-log querying, review the schema, malformed-JSON setting, timestamp conversion and deduplication approach.

Before relying on scheduled delivery, consult the linked general documentation at [https://docs.lovable.dev/features/data-exports] for sources, schedules and run behavior. Obtain applicable Lovable and AWS pricing separately; those details are unknown from this page.

Evidence for this report

selected-page.txtselected · checked 2026-11-24