Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

localstack data does not persist during start and stop

Tags:

localstack

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.

like image 347
user2300947 Avatar asked Sep 02 '25 06:09

user2300947


1 Answers

Persistence works for LocalStock Pro users only https://github.com/localstack/localstack/issues/6281

like image 73
MarsNoToshi Avatar answered Sep 05 '25 01:09

MarsNoToshi