i set the PERSISTENCE to true and DATA_DIR also exist, i even confirmed that it was set by issuing "localstack config show" and there it is seen that the settings are indeed set. i ran localstack with "localstack start -d" then i created an S3 bucket by "awslocal s3api create-bucket --bucket mybucket" querying it after to confirm it has been created. I tested the persistence by shuting down the docker image and restarting it. i queried it again by "awslocal s3api list-buckets" but it doesnt looks like it was there and i need to recreate it.
how can i make localstack persist S3, SNS and database tables? we are trying to build our own local dev environment and it seems it is timed consuming to always recreate our data everytime.
Persistence works for LocalStock Pro users only https://github.com/localstack/localstack/issues/6281
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With