HEX
Server: LiteSpeed
System: Linux s3604.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: dmstechonline (1480)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //lib/python3.6/site-packages/awscli/examples/qldb/export-journal-to-s3.rst
**To export journal blocks to S3**

The following ``export-journal-to-s3`` example creates an export job for journal blocks within a specified date and time range from a ledger with the name ``myExampleLedger``. The export job writes the blocks into a specified Amazon S3 bucket. ::

    aws qldb export-journal-to-s3 \
        --name myExampleLedger \
        --inclusive-start-time 2019-09-18T00:00:00Z \
        --exclusive-end-time 2019-09-18T22:59:59Z \
        --role-arn arn:aws:iam::123456789012:role/my-s3-export-role \
        --s3-export-configuration file://my-s3-export-config.json

Contents of ``my-s3-export-config.json``::

    {
        "Bucket": "awsExampleBucket",
        "Prefix": "ledgerexport1/",
        "EncryptionConfiguration": {
            "ObjectEncryptionType": "SSE_S3"
        }
    }

Output::

    {
        "ExportId": "ADR2ONPKN5LINYGb4dp7yZ"
    }

For more information, see `Exporting Your Journal in Amazon QLDB <https://docs.aws.amazon.com/qldb/latest/developerguide/export-journal.html>`__ in the *Amazon QLDB Developer Guide*.