# SST not preserving state after switching AWS credentials

**URL:** <https://discourse.sst.dev/t/sst-not-preserving-state-after-switching-aws-credentials/3064>\
**Category:** General\
**Created:** [July 9, 2025, 4:14am UTC](https://discourse.sst.dev/t/sst-not-preserving-state-after-switching-aws-credentials/3064 "2025-07-09T04:14:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tryingDeveloper](https://avatars.discourse-cdn.com/v4/letter/t/f475e1/32.png) [@tryingDeveloper](https://discourse.sst.dev/u/tryingDeveloper)\
**Post date:** [July 9, 2025, 4:14am UTC](https://discourse.sst.dev/t/sst-not-preserving-state-after-switching-aws-credentials/3064/1 "2025-07-09T04:14:24Z")

</div>

Hi,

I recently switched my AWS CLI credentials to my personal account and then switched back to my work account. However, when I run `sst dev`, it seems to recreate all the resources instead of using the existing ones. It also doesn’t preserve the state of my previously deployed stage.

Is there a way to make SST use the existing deployed stack and avoid recreating everything? Would appreciate any help on this!

Thanks!
