hey everyone ive just copied my pulumi state fold...
# general
i
hey everyone ive just copied my pulumi state folder from one aws bucket to another and got • 10665 objects • 4.7GB is this normal? how could we clean things up?
c
do you have Versioning enabled?
i
no
i do in the new bucket though
e
There's probably a load of history files, check the .pulumi/history folders and the top level .pulumi folder for timestamped file backups
i
2.5gb could i delete this folder regularly? is there something else i could do to reduce size?
e
You can delete that folder when your sure you don't need the backups in it. You could also try turning on GZIP compression with the PULUMI_SELF_MANAGED_STATE_GZIP=true environment variable, we should probably default this to true at some point.
i
You can delete that folder when your sure you don't need the backups in it.
when would that be the case?
PULUMI_SELF_MANAGED_STATE_GZIP
ill try it, thanks!
e
when would that be the case?
When your sure you don't need the backups. I can't say when that's appropriate for your use case, maybe straight away, maybe never.