Need S3 data support persistence

Issue #25 resolved
yezhongkai created an issue

Need S3 data support persistence

Comments (2)

  1. Waldemar Hummer Account Deactivated

    Hi @yezhongkai, can you try using the DATA_DIR configuration parameter. For example, start up LocalStack list this:

    DATA_DIR=/tmp/localstack_data make infra
    

    Now, when you run run your tests, LocalStack will record all API requests to the file system in /tmp/localstack_data/s3/.... When you terminate and re-start LocalStack, it will re-play (re-execute) the recorded API requests, hence you should get to the same persistent state of all your S3 buckets. Please give that a try and report back how it works. Thanks

  2. yezhongkai reporter

    @w_hummer After a change DATA_DIR from /tmp/localstack/ to /tmp/localstack__data the issue resolved, thank u very much~

  3. Log in to comment